我有一个包含以下代码的 UIViewController
:
- (BOOL) shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
我没有使用UINavigationController
。当这个UIViewController
被显示时,设备仍然会旋转到横向模式。我针对的是iOS 9,问题出在哪里?