From the UIViewController class reference:
By default, the UIViewController class displays views in portrait mode only. To support additional orientations, you must override the shouldAutorotateToInterfaceOrientation: method and return YES for any orientations your subclass supports. If the autoresizing properties of your views are configured correctly, that may be all you have to do. However, the UIViewController class provides additional hooks for you to implement additional behaviors as needed.
For example, if your autoresizingMask
is set to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
, and the parent view of your movie player view has autoresizesSubviews = YES
, then returning YES from the shouldAutorotateToInterfaceOrientation
may be all you need to do.