title: Error when dismissing a MPmovieViewController in landscape to a view in portrait only (UIApplicationInvalidInterfaceOrientation)
body: <p>I'm creating an xcode application for IOS7 that work in portrait mod in most views.</p>
  
  <p>The project setting allows "Portrait" "Landscape Left" and "Landscape Right".</p>
  
  <p>In views that I only want to appears in portrait i add the following code to lock them in portrait mode :</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  
  -(BOOL)shouldAutorotate
  {
      return NO;
  }
  
  -(NSUInteger)supportedInterfaceOrientations
  {
      return UIInterfaceOrientationMaskPortrait;
  }
  </code></pre>
  
  <p>In one of these locked views i present a MPmovieViewController using the following code :</p>
  
  <pre><code>MPMoviePlayerViewController *movieViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:replayURL];
      movieViewController.moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
  
      [self presentMoviePlayerViewControllerAnimated:movieViewController];
  </code></pre>
  
  <p>This code create a MPmovieViewController that i can use in Portrait and Landscape. (that's what i want)</p>
  
  <p>The problem appears when i press the done button of the MPMovieViewController to dismiss the MovieController when in landscape mode. The previous view doesn't support the landscape mode so i have the following error :</p>
  
  <pre><code> *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'preferredInterfaceOrientationForPresentation must return a supported interface orientation!'
  </code></pre>
  
  <p>How can i force the rotation back to portrait mode when dismiss MPMovieViewController?</p>
  
  <p>Best regards</p>
  
  <p>Richard</p>