我在 ios6 中支持横向和纵向模式。我也尝试使用新的设备旋转方法,但是没有调用这些方法并且它不支持方向。
我的代码如下:
-(NSUInteger)supportedInterfaceOrientations
{
NSLog(@"supportedInterfaceOrientations...");
return UIInterfaceOrientationMaskAll;
}
-(BOOL)shouldAutorotate
{
NSLog(@"shouldAutoRotate...");
return YES;
}
我不知道这个问题。
谢谢...