gpt4 book ai didi

ipad - 不推荐使用两阶段旋转动画。此应用程序应使用更流畅的单阶段动画

转载 作者:行者123 更新时间:2023-12-03 23:24:53 26 4
gpt4 key购买 nike

我正在构建一个 ipad 应用程序。当应用程序启动时,我以横向右侧模式显示它。但是一旦应用程序启动,我就会收到此消息

Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation

我在所有类(class)中都使用了这种方法
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

我还在我的 plist 文件中将我支持的界面方向 (iPad) 设置为横向。
如何解决此警告消息?

最佳答案

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

关于ipad - 不推荐使用两阶段旋转动画。此应用程序应使用更流畅的单阶段动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11027764/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com