我正在构建一个ipad应用程序.当应用程序启动时,我以横向右模式显示它.但是一旦应用程序启动,我就会收到此消息
Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation
Run Code Online (Sandbox Code Playgroud)
我在所有课程中都使用了这种方法
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Run Code Online (Sandbox Code Playgroud)
我还在plist文件中将支持的界面方向(iPad)设置为横向.如何解决此警告消息?
我的窗口的rootViewController是一个UINavigationController然后..在这个导航控制器的rootViewController中,我弹出一个模态视图(一个UITabBarController)
这样的事情:
UIWindow
->UINavigationController
-->MyFirstViewController<--In this class I run following code
Run Code Online (Sandbox Code Playgroud)
[self.navigationController presentModalViewController:tabController animated:YES];
Run Code Online (Sandbox Code Playgroud)
然后是调试器警告:当旋转多个视图控制器或视图控制器而不是窗口委托时,不支持使用两阶段旋转动画
但是,如果模态视图不是tabController,则不会出现此警告.
当我在导航控制器中弹出tabController模态视图时,这种行为会对应用程序造成什么伤害?
或者我应该找到另一种方法来做到这一点?
我在这个网站上发现了几个类似的问题,但我不明白......