我有一个问题。我正在使用动画块,但第二个动画与第一个动画同时动画。请帮我的动画不工作ios
这是我的代码。
[UIView animateWithDuration:2.0f
delay:0.0f
options:UIViewAnimationOptionCurveEaseOut
animations:^{
self.scrollView.frame = CGRectMake(63, 59, 437, 289);
}
completion:^(BOOL finished){
if (finished) {
[UIScrollView beginAnimations:nil context:NULL];
[UIScrollView setAnimationDuration:0.6];
self.scrollView.frame = CGRectMake(63, 2, 437, 289);
[UIScrollView commitAnimations];
}
}]
在此先感谢..
你为什么要使用混合动画样式?第二个也使用块动画。 – rmaddy
另外,你在哪里更改'finished'布尔值? – Raptor
@rmaddy,请给我代码,因为我仍然使用动画块混淆。谢谢。 – user3300758