title: UIWindow endDisablingInterfaceAutorotationAnimated: error
body: <p>I'm receiving the following error when a user is in <code>MFMailComposerViewController</code> and presses the <strong>Home</strong> button:</p>
  
  <blockquote>
    <p>[UIWindow endDisablingInterfaceAutorotationAnimated:] called on > without matching -beginDisablingInterfaceAutorotation. Ignoring.</p>
  </blockquote>
  
  <p>I have looked around the forums and some other people have experienced this error in different circumstances, but there is no solution.</p>
  
  <p>I have set <code>shouldAutorotate</code> to this in all the View Controllers in the app:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:
                                    (UIInterfaceOrientation)interfaceOrientation
  {
      return interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown ||
             interfaceOrientation == UIInterfaceOrientationPortrait;
  }
  </code></pre>