Iphone MPMoviePlayerViewController仅在横向模式下播放电影
我只想在iPhoneSDK.40(MPMoviePlayerViewController)中以横向模式播放视频。它不应支持纵向模式播放。我们如何做到这一点 我在这里找到了这个文档: : 因此,基本上,您只需要创建自己的MPMoviePlayServiceWController子类,并重写shouldAutorotateToInterfaceOrientation:方法,如下所示:Iphone MPMoviePlayerViewController仅在横向模式下播放电影,iphone,Iphone,我只想在iPhoneSDK.40(MPMoviePlayerViewController)中以横向模式播放视频。它不应支持纵向模式播放。我们如何做到这一点 我在这里找到了这个文档: : 因此,基本上,您只需要创建自己的MPMoviePlayServiceWController子类,并重写shouldAutorotateToInterfaceOrientation:方法,如下所示: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfac
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
@安德鲁:我也用你的方法,但有时它还是以纵向模式播放视频