【发布时间】:2010-09-22 18:09:00
【问题描述】:
我想知道 CALayer 中动画的回调在哪里(或者是否有任何东西)。具体来说,对于隐含的动画,比如改变框架、位置等。在 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];
具体来说,setAnimationDidStopSelector 是我想要的 CALayer 中的动画。有这样的吗?
TIA。
【问题讨论】:
-
对于任何在这里谷歌搜索的人,我已经为这个令人难以置信的古老问题提供了一个现代答案! :O 搜索到“2017...”
标签: iphone core-animation