shouldAutorotateToInterfaceOrientation:

Returns a Boolean value indicating whether the view controller supports the specified orientation.

Declaration

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation

Parameters

toInterfaceOrientation

The orientation of the application’s user interface after the rotation. The possible values are described in UIInterfaceOrientation.

Return Value

YES if the view controller supports the specified orientation or NO if it does not.

Overview

This method is an override that replaces the default behavior by returning YES for the UIInterfaceOrientationPortrait, UIInterfaceOrientationLandscapeLeft, and UIInterfaceOrientationLandscapeRight orientations.

See Also

New Methods

- initWithContentURL:

Returns a movie player view controller initialized with the specified movie.

Deprecated
moviePlayer

The movie player controller object used to present the movie.

Deprecated