【发布时间】:2012-12-28 10:38:04
【问题描述】:
我在 ios6 中支持横向和纵向模式。我也尝试了新的设备旋转方法,但是这些方法没有被调用并且它不支持方向。
我的代码如下:
-(NSUInteger)supportedInterfaceOrientations
{
NSLog(@"supportedInterfaceOrientations...");
return UIInterfaceOrientationMaskAll;
}
-(BOOL)shouldAutorotate
{
NSLog(@"shouldAutoRotate...");
return YES;
}
我不知道这个问题。
谢谢...
【问题讨论】:
-
检查目标支持的界面方向
-
是的,它支持所有方向。
-
检查supportedInterfaceOrientations和shouldAutorotate函数是否存在于所有类中..
-
你在使用 UINavigationController 吗?
-
是的,但使用拆分视图控制器
标签: iphone ios xcode orientation