Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios7 如何将iOS rootviewcontroller带到前台_Ios7 - Fatal编程技术网

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也没有帮助。