MPMoviePlayerController full screen orientation issue
问题 My app supports only Landscape. I've added an MPMoviePlayerController to the view of my view controller. When I press full screen button, it works fine and it will rotate in Landscape only for iOS versions prior to iOS 5. However, in iOS 5.0+, it also supports portrait (only when I enter into full screen mode). How can I prevent portrait support in iOS 5.0 and above? 回答1: Try subclassing MPMoviePlayerViewController and overriding the shouldAutorotatoToInterfaceOrientation method to only