Instance Property


Returns a Boolean value indicating whether the view controller'€™s contents should auto rotate.


var shouldAutorotate: Bool { get }

Return Value

true if the content should rotate, otherwise false. This method returns true by default.

See Also

Configuring the View Rotation Settings

var supportedInterfaceOrientations: UIInterfaceOrientationMask

The interface orientations that the view controller supports.

var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation

Returns the interface orientation to use when presenting the view controller.

class func attemptRotationToDeviceOrientation()

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