将我的应用程序更新为iOS6标准时,纵向/横向消失了.当我使用Xcode 3构建时,Ir工作得很好.但是现在使用最新的Xcode和最新的SDK,旋转消失了,它始终处于纵向模式.无论我在"支持的界面方向"中加入什么.我以前用来获得旋转的代码似乎根本没有效果.我有这些台词.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
switch (toInterfaceOrientation) {
case UIInterfaceOrientationPortrait:
case UIInterfaceOrientationLandscapeLeft:
case UIInterfaceOrientationLandscapeRight:
return YES;
default:
return NO;
}
}
Run Code Online (Sandbox Code Playgroud)
我如何更改以及如何更改以使其再次运行?