Instance Property

shouldAutorotate

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

Declaration

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

Returns all of 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.