MPMoviePlayerController不会退出全屏模式
|
(ipad 1,iOs 4.3)
我在ipad上遇到了这个错误:当我在视图中添加MPMoviePlayerController并将其置于全屏模式时,所有电影播放器控制器均不起作用(我可以看到,但如果我触摸它则不起作用),并且我无法退出全屏模式
我的代码:
//Player video
self.player = [[MPMoviePlayerController alloc]
initWithContentURL:[NSURL fileURLWithPath:self.attachment.path]];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:player];
[self.player setFullscreen:NO];
[self.view addSubview:self.player.view];
[self.player play];
有什么建议吗?
没有找到相关结果
已邀请:
0 个回复