I know this question has already been asked a bazillion times, but none of the solutions I've found so far have worked. Here's the situation, I have an app in which every view supports only portrait mode except for a subclass of MPMoviePlayerViewController which supports landscape left and right as well. This view is being presented modally from within a UINavigationController, so I have subclassed UINavigationController as well and that subclass supports landscape as well. I have made sure that the project file is set up to support all orientations except upside down. The code in my movie player subclass for rotation is this:
This works fine in iOS 5.x, but it won't ever leave portrait mode in iOS 6. Does anyone have any ideas about what else I can do make the movie rotate in iOS 6?
Thanks
Code:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAllButUpsideDown;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
- (BOOL)shouldAutorotate {
return YES;
}
This works fine in iOS 5.x, but it won't ever leave portrait mode in iOS 6. Does anyone have any ideas about what else I can do make the movie rotate in iOS 6?
Thanks
Last edited: