不推荐使用两阶段旋转动画.此应用程序应使用更平滑的单阶段动画

sou*_*ark 13 ipad uiinterfaceorientation ios5.1

我正在构建一个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)设置为横向.如何解决此警告消息?

Joh*_*han 15

我刚刚意识到 - 在阅读完这个答案后 - 我只是错误地使用了标签栏控制器:标签栏应该只用作根控制器,但我在它之前插入了一个导航控制器.


Mat*_*ros 7

如果您在故事板中以root用户身份运行带有空标签栏控制器的应用程序,也可以收到此错误消息.我刚刚开始使用应用程序而且我UITabBarController还没有视图控制器,但是它正在呈现一个登录模式.