Frage

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

War es hilfreich?

Lösung

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

alertView.transform = CGAffineTransformRotate(alertView.transform, degreesToRadian(90));
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top