开发者社区> 问答> 正文

CAKeyframeAnimation动画

CAKeyframeAnimation动画结束有没有回调方法, 我看了一下它里面的头文件,没找到,有知道的么,

展开
收起
a123456678 2016-07-27 16:30:51 1815 0
1 条回答
写回答
取消 提交回答
  • 有delegate。

    @interface NSObject (CAAnimationDelegate)
    
    /* Called when the animation begins its active duration. */
    
    - (void)animationDidStart:(CAAnimation *)anim;
    
    /* Called when the animation either completes its active duration or
     * is removed from the object it is attached to (i.e. the layer). 'flag'
     * is true if the animation reached the end of its active duration
     * without being removed. */
    
    - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;
    
    @End
    2019-07-17 20:00:49
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载