Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在始终返回的UIAlertViewa 内显示旋转到设备的当前方向?UIViewControllerNOshouldAutorotateToInterfaceOrientation:
UIAlertView
UIViewController
NO
shouldAutorotateToInterfaceOrientation:
您可以在显示后根据设备的方向旋转视图,使用以下方法:
alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));