Ios7 如何将iOS rootviewcontroller带到前台

Ios7 如何将iOS rootviewcontroller带到前台,ios7,Ios7,我正在从模式视图调用AppDelegate中的一个方法,以便在事件发生后切换到rootviewcontroller(TabBarController)。如何将rootview置于前台?我不应该创建rootviewcontroller的新实例 您可以使用self.window.rootViewController访问应用程序rootViewController的实例谢谢。我可以使用self.window.rootViewController访问根视图控制器。我意识到有一个由rootviewcont

我正在从模式视图调用AppDelegate中的一个方法,以便在事件发生后切换到rootviewcontroller(TabBarController)。如何将rootview置于前台?我不应该创建rootviewcontroller的新实例

您可以使用self.window.rootViewController访问应用程序rootViewController的实例

谢谢。我可以使用self.window.rootViewController访问根视图控制器。我意识到有一个由rootviewcontroller呈现的modalview,我需要取消它以显示根视图。我的根视图控制器是一个UITabBarController。当我调用[mainTabBar setSelectedIndex:1]时;[主选项卡解除ModalViewController激活:否];,根视图出现在前台,但DismissModalViewController不推荐使用。使用dismissViewController也没有帮助。