문제

Is it possible to show a UIAlertView rotated to the device's current orientation inside a UIViewController that always returns NO in shouldAutorotateToInterfaceOrientation: ?

도움이 되었습니까?

해결책

You can rotate the view after showing it depending on the orientation of the device, using this:

alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top