在我的应用程序中,有一个videoViewController
仅为纵向配置的。
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
也就是说,当用户将设备从纵向旋转到横向时,实时预览(位于videoViewController
视图的层次结构中)不会随设备旋转(如 Apple 相机应用程序)。当设备处于videoViewController
横向UIAlertController
模式时,设备上的实例UIAlertController
处于纵向。如何确保UIAlertController
按照设备方向呈现?任何输入表示赞赏。
此外,如果我使用UIAlertView
代替UIAlertController
, 的实例UIAlertView
将相应地旋转。因为UIAlertView
在 iOS 8.0 中已弃用,我不想使用它。