iPhone应用程序以横向模式启动。为什么会有模糊的警告?
我想以横向模式启动我的应用程序,我将按照此处描述的步骤进行操作: 总结: 在我的ViewController中:iPhone应用程序以横向模式启动。为什么会有模糊的警告?,iphone,Iphone,我想以横向模式启动我的应用程序,我将按照此处描述的步骤进行操作: 总结: 在我的ViewController中: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } 在我的Info.plist中: <
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
在我的Info.plist中:
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
UIInterfaceOrientation
UIInterfaceOrientationAndscapeRight
在模拟器或设备上启动时,我收到以下消息:
使用两阶段旋转动画。要使用更平滑的单阶段动画,此应用程序必须删除两阶段方法实现
嗯
请有人解释一下这意味着什么,并为我提供解决的步骤
干杯
道格问题在于这种方法: –WillAnimateFirstalFofrotationInterfaceOrientation:持续时间:
–将动画从Interface定向旋转的第二个一半:持续时间:
您的ViewController只有其中一个?试着评论一下。或者加上第二个 太棒了。谢谢你。除了有点晦涩之外,这些都是我见过的最长的方法名;-)。你看得出我是一个ole C黑客吗。干杯谢谢