Note that there are some explanatory texts on larger screens.

plurals
  1. POMPMoviePlayerController leaves App in incorrect orientation after fullscreen mode
    primarykey
    data
    text
    <p>So we build an iPad App that only supports landscape orientation. This is enforced by setting the <code>Supported interface orientations (iPad)</code> to <code>Landscape (left/right home button)</code> in the plist. Also all the <code>UIViewControllers</code> have the implemented <code>shouldAutorotateToInterfaceOrientation:</code> as follows:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsLandscape(interfaceOrientation); } </code></pre> <p>This works fine and the App is locked in landscape orientation. Now we have a <code>MPMoviePlayerController</code> embedded in one of our views. When the user goes fullscreen with this movie, he is able to rotate to portrait. The movieplayer seems to bypass all our landscape settings. That's fine with me, but when the user taps the <code>done</code>-button when still in portrait orientation all our <code>UIViewControllers</code> are also in portrait and looking terrible!</p> <p>The user has to rotate the iPad to landscape himself to make things look good again and will then be unable to rotate back to portrait as expected.</p> <p>So why are my views rotated to portrait even when all <code>shouldAutorotateToInterfaceOrientation</code> tell iOS to not rotate to portrait? And how can I make sure the movieplayer does not rotate my views?</p> <p>If your solution also locks the movieplayer itself in landscape, that's fine with me. I'm happy as long as my views aren't rotated! :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload