Ios5 MPMoviePlayerViewController覆盖控件在重复使用后不响应触摸

Ios5 MPMoviePlayerViewController覆盖控件在重复使用后不响应触摸,ios5,mpmovieplayercontroller,mpmovieplayer,Ios5,Mpmovieplayercontroller,Mpmovieplayer,这让我快发疯了 很简单,我有一个MPMoviePlayerViewController,想全屏显示一部电影。 使用iOS 5.0+上的ARC,我想让这个播放器应用程序在整个范围内可重用 这部电影第一次上映时,它覆盖了整个屏幕,播放效果令人惊叹。覆盖控件显示正确,对触摸反应良好。我使用 [theMovie.moviePlayer setContentURL:movieURL]; [theMovie.moviePlayer prepareToPlay]; [self presentViewCont

这让我快发疯了

很简单,我有一个MPMoviePlayerViewController,想全屏显示一部电影。 使用iOS 5.0+上的ARC,我想让这个播放器应用程序在整个范围内可重用

这部电影第一次上映时,它覆盖了整个屏幕,播放效果令人惊叹。覆盖控件显示正确,对触摸反应良好。我使用

[theMovie.moviePlayer setContentURL:movieURL];
[theMovie.moviePlayer prepareToPlay];

[self presentViewController:theMovie animated:YES completion:^{
    [theMovie.moviePlayer play];
}];
播放结束后,我截获通知并运行此

[self dismissViewControllerAnimated:YES completion:^{
            [theMovie.moviePlayer stop];
            [theMovie.moviePlayer setContentURL:nil];
}];
现在的问题是,从第二次播放电影开始,它会显示控件,但播放器不再对电影区域中的触摸做出反应。我能够使用控制、后退、播放/暂停、搜索、完成等。。。但不能在非控制区域中触摸以切换控件可见性。如果我让它正常播放,它会自动隐藏,但在触摸非控制区域后不会再次出现

我不知道这里发生了什么。如果你能帮助我,我会很乐意的

谢谢,
g、

将mpmovieplayervewcontroller的声明移动到.h文件中,并在m文件viewDidLoad或viewwill中显示alloc it和init:)