1
我的应用程序是在横向模式下,我使用的MPMoviePlayerController发挥样本视频。它工作正常,但是当我停止与OK按钮的视频(或者,如果我等到电影结束),方向自动切换到肖像。 是否有可能保持在横向模式下的应用程序时确定按钮被按下?iPhone禁止应用自动改变方向为纵向当视频停止
我用followwing代码在我的主视图控制器,迫使风景模式:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}