不推荐使用两阶段旋转动画。此应用程序应使用更平滑的单级动画 [英] Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation

查看:118
本文介绍了不推荐使用两阶段旋转动画。此应用程序应使用更平滑的单级动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆