是否有可能在 UIViewController
中显示旋转到设备当前方向的 UIAlertView
,它总是在 shouldAutorotateToInterfaceOrientation 中返回
?NO
:
最佳答案
您可以在显示 View 后根据设备的方向旋转 View ,使用此方法:
alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
关于iphone - 不要自动旋转 View Controller ,但显示 UIAlertView 已旋转,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7462714/