0
嗨,我是使用下面的景观模式的代码只有一个视图控制器如何在横向模式下显示一个视图控制器?
- (BOOL)shouldAutorotate {
return NO;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationLandscapeRight; // or Right of course
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
它工作正常,但是当我旋转为纵向然后旋转,我使用下面的代码用于呈现视图
[self presentViewController:vc animated:YES completion:nil];
在那里我提前缺少感谢
同样的问题昨天 –
问我可以知道你的应用是否为纵向或横向使你的ViewController?@Bittoo – Madhu
@Madhu两个但在景观 – Bittoo