Ios MPMoviePlayerController视图的UIView动画

Ios MPMoviePlayerController视图的UIView动画,ios,uiview,Ios,Uiview,我有一部电影在由管理的容器视图中成功播放 BWCVideoViewController : UIViewController 当我启动电影(效果很好)时,我使用以下方法成功地淡入电影视图 [self.view addSubview:theMovie.view]; theMovie.view.alpha = 0.0; [theMovie play]; [self movieFadeIn]; - (void)movieFadeIn { [UIView animateWithDurat

我有一部电影在由管理的容器视图中成功播放

BWCVideoViewController : UIViewController
当我启动电影(效果很好)时,我使用以下方法成功地淡入电影视图

[self.view addSubview:theMovie.view];
theMovie.view.alpha = 0.0;
[theMovie play];
[self movieFadeIn];


- (void)movieFadeIn
{

    [UIView animateWithDuration:3.0
                          delay:0.0
                        options:UIViewAnimationOptionCurveLinear
                     animations:^{
                         theMovie.view.alpha = 1.0f;
                     }
                    completion:nil];
}

但就我个人而言,当电影停止或仍在播放时,我无法将电影画面淡出!它只是“闪烁”并突然消失:

- (void)movieFadeOut
{

    [UIView animateWithDuration:2.5
                          delay:0.0
                        options:UIViewAnimationOptionCurveLinear
                     animations:^{
                         theMovie.view.alpha = 0.1f;
                     }
                     completion:nil];
}

我在其他地方也有过类似的建议,但我感到困惑。在模拟器/设备(iOS7)中得到了相同的结果。

我已经解决了它,但不是我所期望的那样。
我创建了另一个具有相同帧大小的子视图(因此它位于视频上方)。我淡入淡出,得到了想要的结果。奇怪。

您是否尝试更改延迟的值?你试着倒序如下:movie.view.alpha=0.0;[self.view addSubview:theMovie.view];[电影剧];[自拍电影];