Instance Property

shouldAutorotate

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

Declaration

@property(nonatomic, readonly) BOOL shouldAutorotate;

Return Value

YES if the content should rotate, otherwise NO. This method returns YES by default.

See Also

Configuring the View Rotation Settings

supportedInterfaceOrientations

Returns all of the interface orientations that the view controller supports.

preferredInterfaceOrientationForPresentation

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

+ attemptRotationToDeviceOrientation

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