2

在我的应用程序中,有一个videoViewController仅为纵向配置的。

- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}  

也就是说,当用户将设备从纵向旋转到横向时,实时预览(位于videoViewController视图的层次结构中)不会随设备旋转(如 Apple 相机应用程序)。当设备处于videoViewController横向UIAlertController模式时,设备上的实例UIAlertController处于纵向。如何确保UIAlertController按照设备方向呈现?任何输入表示赞赏。

在此处输入图像描述

此外,如果我使用UIAlertView代替UIAlertController, 的实例UIAlertView将相应地旋转。因为UIAlertView在 iOS 8.0 中已弃用,我不想使用它。

4

0 回答 0