我在 iOS5 中观察到,将 MPMoviePlayer 的控件样式属性设置为 MPMoviePlayerControlStyleNone 然后进入全屏模式时,完成按钮不会退出全屏模式。在 iOS6 中,完成按钮退出全屏模式。这是我正在使用的代码,有人对此问题有任何见解吗?
- (void)viewDidLoad
{
[super viewDidLoad];
self.playerController = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]];
[self.playerController setControlStyle:MPMovieControlStyleNone];
[self.playerController play];
[self.view addSubview:self.playerController.view];
}
- (IBAction)fullScreenButtonPressed:(id)sender {
[self.playerController setFullscreen:YES animated:YES];
[self.playerController setControlStyle:MPMovieControlStyleFullscreen];
}