I am adding an MPMoviePlayerViewController to my app like this:
MPMoviePlayerViewController *vc = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];;
[self presentMoviePlayerViewControllerAnimated:vc];
Everything is working but I can't enable landscape mode. I want my whole app except the actual MPMoviePlayerViewController to be portrait. I searched on google but all the solutions require having the rest of the app also in landscape.I need my app to stay in Portrait except in the MPMoviePlayerViewController.
Thanks in advance!
EDIT:
Using @matt answer I added landscape to my Device Orientation:
Next I went to my First View Controller(Not the MPMoviePlayerViewController) and added:
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
However the app still let's the Main Menu go to Landscape mode.