iOS 8.1横屏影响其他界面frame改变
我在做播放器的时候, 在MoviePlayerController里设置横屏,但是为什么会影响其他页面?
每次我开始运行从这个界面直接进到播放器横屏,别的界面就会走ViewDidload,导致frame改变,这个问题只有iOS8.1会发生,其他版本并不走ViewDidload,为什么?我该怎么解决?
下边是我写的横屏设置:
- (BOOL)prefersStatusBarHidden
{
return YES;
}
- (BOOL)shouldAutorotate
{
return YES;
}
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
//return UIInterfaceOrientationMaskLandscapeRight;
}