我想知道在CALayer中动画的回调函数在哪里(或者是否存在)。具体而言,是针对像更改frame、position等隐式动画时的回调。在UIView中,您可以像这样执行:
[UIView beginAnimations:@"SlideOut" context:nil];
[UIView setAnimationDuration:.3];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animateOut:finished:context:)];
CGRect frame = self.frame;
frame.origin.y = 480;
self.frame = frame;
[UIView commitAnimations];
具体来说,我想在CALayer中实现一个动画,我需要使用
setAnimationDidStopSelector
,是否有类似的功能?谢谢!