[英]Don't autorotate view controller, but show UIAlertView rotated
是否可以在UIViewController
中显示旋转到设备当前方向的UIAlertView
,它总是在shouldAutorotateToInterfaceOrientation:
返回NO
shouldAutorotateToInterfaceOrientation:
?
您可以在显示视图后根据设备的方向旋转视图,使用:
alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.