【发布时间】:2011-09-18 16:14:04
【问题描述】:
是否可以在UIViewController 中显示旋转到设备当前方向的UIAlertView,在shouldAutorotateToInterfaceOrientation: 中始终返回NO?
【问题讨论】:
标签: iphone ios ipad uialertview device-orientation
是否可以在UIViewController 中显示旋转到设备当前方向的UIAlertView,在shouldAutorotateToInterfaceOrientation: 中始终返回NO?
【问题讨论】:
标签: iphone ios ipad uialertview device-orientation
您可以在显示后根据设备的方向旋转视图,使用以下方法:
alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
【讨论】: