<分区>
我想在动画结束后执行doSomethingElse。另一个限制是动画代码可以有不同的持续时间。我怎样才能做到这一点?谢谢!
-(void) doAnimationThenSomethingElse {
[self doAnimation];
[self doSomethingElse];
}
这个例子是行不通的:
animationDuration = 1;
[UIView animateWithDuration:animationDuration
animations:^{
[self doAnimation];
} completion:^(BOOL finished) {
[self doSomethingElse];
}
];