title: MPMoviePlayerController fullscreen quirk in iPad
body: <p>I want to show a MPMoviePlayerController in a view controller and let the user toggle full screen with the default controls, like the YouTube app. I'm using the following code in a bare-bones example:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      self.player = [[MPMoviePlayerController alloc] init];
      self.player.contentURL = theURL;
      self.player.view.frame = self.viewForMovie.bounds;
      self.player.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
      [self.viewForMovie addSubview:player.view];
      [self.player play];
  }
  </code></pre>
  
  <p>This works well until the user makes the video full screen, rotates the device and taps on the screen. The status bar is shown in the wrong position, as shown in the screenshot below.</p>
  
  <p><img src="https://i.stack.imgur.com/s4H80.png" alt="screenshot"></p>
  
  <p>I'm working with the template Tab Bar Application for iPad. I've only added the viewDidLoad above, the view variables and an UIView in the XIB to show the movie player.</p>
  
  <p>What am I doing wrong?</p>