所以,我正在修复 Iphone 的界面是纵向的,我想在播放视频时显示风景(使用 MPMoviePlayerController),我已经在 ios6 sdk 中阅读过,ShouldAutorotateToInterfaceOrientation 已被弃用。如何仅旋转此播放器视图?我只能旋转整个应用程序,但不想这样做。
我试过了
(BOOL)shouldAutorotate
{
return [[self.viewControllers lastObject] shouldAutorotate];
}
-(NSUInteger)supportedInterfaceOrientations
{
return [[self.viewControllers lastObject] supportedInterfaceOrientations];
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation];
}