iPhone应用程序以横向模式启动。为什么晦涩的警告?

时间:2009-09-04 13:49:02

标签: iphone

我想以横向模式启动我的应用程序,并按照此处描述的步骤进行操作:

http://developer.apple.com/iphone/library/technotes/tn2009/tn2244.html

总结一下:

在我的ViewController中:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

在我的Info.plist中:

<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>

在模拟器或设备上启动后,我收到以下消息:

使用两阶段旋转动画。要使用更平滑的单阶段动画,此应用程序必须删除两阶段方法实现。

咦?

有人可以解释这意味着什么,并为我提供解决问题的步骤。

干杯,

道格

1 个答案:

答案 0 :(得分:1)

问题出在这个方法中:

- willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
- willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:

您的ViewController只有一个?试着评论一下。或者添加第二个。

相关问题