title: iOS 8 Orientation bug. Works in 7.1
body: <p>I have a view which is locked in portrait and then i push a second view where i have it in Landscape.
  After the video has played in landscape it returns back to Portrait, which works fine in iOS 7.1 but there is some weird bug on iOS 8.0.</p>
  
  <p>Please look at this picture. As you can see the the tabBar has moved up to the middle of the screen.
  <img src="https://i.stack.imgur.com/ghz1Y.png" alt="enter image description here"></p>
  
  <p>It looks like this before going in to the video player.</p>
  
  <p><img src="https://i.stack.imgur.com/gk17x.png" alt="enter image description here"></p>
  
  <p>I've tried various other things like setting</p>
  
  <pre><code>[self.view.window setFrame:[[UIScreen mainScreen] bounds]];
  </code></pre>
  
  <p>I'm currently using MPMoviePlayerViewController to show my video. But it just won't work after i pop back to the other view.</p>
  
  <p>It's so weird it works in iOS 7.
  Can you guys help me out?</p>
  
  <p>The way i'm controlling the orientation is by subclassing uinavigation controller and telling it that it's only in Portrait then when i get to the video view i tell it that landscape is allowed. Then when it returns i only allow portrait again.</p>
  
  <pre><code>-(NSUInteger)supportedInterfaceOrientations {
      return UIInterfaceOrientationMaskLandscape;
  }
  
  -(BOOL)shouldAutorotate{
      return YES;
  }
  </code></pre>