我正在構建一個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