0
我有一个电影在容器视图当成功地扮演由UIView的动画
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];
}
我跟着其他地方SO如here建议,但我感到困惑。模拟器/设备(iOS7)相同的结果
您是否尝试更改延迟值? 并尝试颠倒这样的顺序: theMovie.view.alpha = 0.0; [self.view addSubview:theMovie.view]; [theMovie play]; [self movieFadeIn]; – chawki