我的代码如下:
CATransition *transition = [CATransition animation];
transition.duration = duration 我希望得到CATransition/Animation的结束事件。有可能吗?
发布于 2011-01-30 12:43:58
CAAnimation ( CATransition是它的子类)有一个可以使用的委托方法animationDidStop:finished:。
设置委托属性并实现方法:
CATransition *transition = [CATransition animation];
transition.duration = duration;
transition.delegate = self;
//other settings...
//call addAnimation...
...
- (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag
{
//do what you need to do when animation ends...
}https://stackoverflow.com/questions/4841120
复制相似问题