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.

Please look at this picture. As you can see the the tabBar has moved up to the middle of the screen.
![enter image description here](https://i.stack.imgur.com/ghz1Y.png)

It looks like this before going in to the video player.

![enter image description here](https://i.stack.imgur.com/gk17x.png)

I've tried various other things like setting

```
[self.view.window setFrame:[[UIScreen mainScreen] bounds]];

```

I'm currently using MPMoviePlayerViewController to show my video. But it just won't work after i pop back to the other view.

It's so weird it works in iOS 7.
Can you guys help me out?

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.

```
-(NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskLandscape;
}

-(BOOL)shouldAutorotate{
    return YES;
}

```