【发布时间】:2015-07-19 04:37:52
【问题描述】:
这个问题与当前存在的问题不同。
我已将设备设置为通用,并且只检查了横向权限。
当我在 iPhone 中启动我的应用程序时,它只能像预期的那样在横向模式下运行。
但是 iPad 可以旋转,不知道为什么。甚至尝试过
- (BOOL) shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
}
【问题讨论】:
标签: ios uiinterfaceorientation