【发布时间】:2023-11-04 06:20:01
【问题描述】:
我正在构建一个 ipad 应用程序。当应用程序启动时,我以横向右模式显示它。但是一旦应用程序启动,我就会收到此消息
Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation
我在所有课程中都使用了这种方法
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
我还在我的 plist 文件中将支持的界面方向 (iPad) 设置为横向。 如何解决此警告消息?
【问题讨论】:
-
@Alexander 我没有以模态方式显示标签栏。
-
您的“登录屏幕”是 NavigationController 吗?所有控制器,必须是“rootViewController”,不应用作“模态”。
-
@Alexander LoginScreen 显示为标签栏控制器的模式。添加到标签栏控制器的所有其他控制器都在导航控制器下作为 rootViewControllers。登录时我关闭登录模式以显示标签栏
标签: ipad uiinterfaceorientation ios5.1