不推荐使用两阶段旋转动画。此应用程序应使用更平滑的单级动画 [英] Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation
问题描述
我正在构建一个ipad应用程序。当应用程序启动时,我以横向右模式显示它。但是一旦应用程序启动,我就会收到此消息
I am building a ipad application. when the applications starts i show it in landscape Right mode. But as soon as the application starts I get this message
Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation
我在所有类中使用此方法
I used this method in all my classes
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
我还将我支持的界面方向(iPad)设置为我的plist中的横向文件。
如何解决此警告消息?
I also set my supported interface orientations (iPad) to landscape right in my plist file. How to resolve this warning message?
推荐答案
我刚刚意识到 - 在阅读这个答案 - 我只是错误地使用标签栏控制器:标签栏应该只用作一个根控制器,但我在它之前插入了一个导航控制器。
I just realized - after reading this answer - that I was simply using the Tab Bar Controller wrong: the tab bar should only be used as a root controller, however I inserted a navigation controller before it.
这篇关于不推荐使用两阶段旋转动画。此应用程序应使用更平滑的单级动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!