Type Method


Attempts to rotate all windows to the orientation of the device.


class func attemptRotationToDeviceOrientation()


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

Configuring the View Rotation Settings

var shouldAutorotate: Bool

A Boolean value that indicates whether the view controller'€™s contents should autorotate.

var supportedInterfaceOrientations: UIInterfaceOrientationMask

The interface orientations that the view controller supports.

var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation

The interface orientation to use when presenting the view controller.