attemptRotationToDeviceOrientation()
Attempts to rotate all windows to the orientation of the device.
Declaration
class func attemptRotationToDeviceOrientation()Discussion
Some view controllers may want to use app-specific conditions to determine what interface orientations are supported. If your view controller does this, when those conditions change, your app should call this class method. The system immediately attempts to rotate to the new orientation.
See Also
Related Documentation
Deprecated methods
setOverrideTraitCollection(_:forChild:)overrideTraitCollection(forChild:)registerForPreviewing(with:sourceView:)unregisterForPreviewing(withContext:)canPerformUnwindSegueAction(_:from:withSender:)didRotate(from:)dismissMoviePlayerViewControllerAnimated()forUnwindSegueAction(_:from:withSender:)presentMoviePlayerViewControllerAnimated(_:)rotatingFooterView()rotatingHeaderView()segueForUnwinding(to:from:identifier:)shouldAutomaticallyForwardRotationMethods()willAnimateRotation(to:duration:)willRotate(to:duration:)