我正在构建一个ipad应用程序。当应用程序启动时,我将它显示在横向右键模式下。但是,一旦应用程序启动后,我得到这个消息两阶段旋转动画已弃用。这个应用程序应该使用更流畅的单级动画
Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation
我用我所有的类此方法
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
我也把我的支持的接口方向(新iPad)景观就在我的plist文件。 如何解决此警告消息?
如果您尝试使用模态UITabBarController(更新,是的,您可以),然后看解决方案[这里](http://stackoverflow.com/questions/6271978/presenting-uitabbarcontroller-modally-autorotate-problem)。官方解释为什么这件事[这里](http://stackoverflow.com/questions/6636683/how-to-eliminate-two-stage-rotation-warning)。 – Alexander
@亚历山大我没有模态地显示标签栏。 – southpark
你是“登录屏幕”的NavigationController吗?所有的控制器,必须是“rootViewController”,不应该被用作“模式”。 – Alexander