title: Crash on shouldAutorotate() method when UIAlertview show in Landscape viewcontroller?
body: <p>I am working on a app in which I am using only one orientation which is Portrait. This is device orientation setting:</p>
  
  <p><a href="https://i.stack.imgur.com/0MT7Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0MT7Z.png" alt="enter image description here"></a>  </p>
  
  <p>But In my app there is Video player (Custom Player of <code>MPMoviePlayerViewController</code>) which I wanted to show in Landscape Right mode only and It should not be rotated.
  This is working fine, I mean this Custom Player is showing in Landscape Right perfectly, but when I am using an <code>UIAlertview</code> then application is crashed on this method:</p>
  
  <pre><code>- (BOOL)shouldAutorotate {
  
  
      return NO;
  
  }
  </code></pre>
  
  <p>These are some other orientation methods :</p>
  
  <pre><code>- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
      return UIInterfaceOrientationLandscapeRight; // or Right of course
  }
  
  #if __IPHONE_OS_VERSION_MAX_ALLOWED &lt; 90000
  - (NSUInteger)supportedInterfaceOrientations
  #else
  - (UIInterfaceOrientationMask)supportedInterfaceOrientations
  #endif
  {
      return UIInterfaceOrientationMaskLandscape;
  }
  </code></pre>
  
  <p>I am getting this Error: </p>
  
  <pre><code> *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [UIAlertController shouldAutorotate] is returning YES'
  </code></pre>