1

(ipad 1, iOs 4.3)

我在 ipad 上遇到了这个错误:当我将 MPMoviePlayerController 添加到我的视图并将其置于全屏模式时,所有电影播放器​​控制器都不起作用(我可以看到,但如果我触摸它就不起作用),我可以' t 退出全屏模式

我的代码:

            //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];

有什么建议吗?

4

0 回答 0