我的窗口RootViewController的是一个UINavigationController 然后..在这个导航控制器的RootViewController的,我弹出一个模式的看法(一的UITabBarController)如何消除“两段旋转”警告?
是这样的:
UIWindow
->UINavigationController
-->MyFirstViewController<--In this class I run following code
[self.navigationController presentModalViewController:tabController animated:YES];
然后调试器警告:当旋转多个视图控制器或视图控制器而不是窗口委托时,不支持使用两级旋转动画
但是,如果mod al查看不是tabController这个警告不会出现。
当我在导航控制器中弹出tabController模式视图时,这种行为会对应用程序造成什么危害?
或者我应该找到另一种方法来做到这一点?
我发现本网站上几个类似的问题,但我不明白这一点...
http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root - 这是另一种方式来做到这一点。不要使用控制器,而应该创建自己的UIControllerView并将UITabBar附加到它。链接提供了源代码(位于GIT上)。 – TamusJRoyce