我想知道CALayer中的动画在哪里(或者是否有任何动画)。具体而言,隐含的动画像改变框架,位置等。在一个UIView,你可以做这样的事情:CALayer的动画结束回调?
[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];
具体来说,setAnimationDidStopSelector
就是我想要的CALayer的动画。有没有这样的事情?
TIA。
对于谷歌搜索的人在这里,我已经把一个现代回答这个令人难以置信老问题! :O搜索到“2017 ...” – Fattie 2017-11-28 16:47:05