2009-09-04 30 views
0

我要启动我的应用程序在横向模式和我下面的步骤描述这里:iPhone应用程序在横向模式下启动。为什么这个模糊的警告?

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

要summerize:

在我的ViewController:

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

在我的信息.plist:

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

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

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

咦?

有人可以请解释这是什么意思,并提供我解决它的步骤。

干杯,

道格

回答

1

的问题是在这种方法:

- willAnimateFirstHalfOfRotationToInterfaceOrientation:时间:
- willAnimateSecondHalfOfRotationFromInterfaceOrientation:时间:

你的ViewController只有其中之一吗?尝试对其发表评论。或者添加第二个。

+0

辉煌。谢谢你。除了有点模糊之外,这些都是我见过的最长的方法名称;-)。你能告诉我是一个ole C黑客吗?干杯。谢谢。 – dugla

相关问题