我有UIViewController以下代码:
- (BOOL) shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
Run Code Online (Sandbox Code Playgroud)
我没有使用UINavigationController.当这个UIViewController被显示,该装置仍将旋转为横向.我的目标是iOS 9,这里的问题是什么?