V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jseanj
V2EX  ›  程序员

关于 CABasicAnimation 的问题

  •  
  •   jseanj · 2015-02-02 23:06:42 +08:00 · 1812 次点击
    这是一个创建于 3372 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如果设置了repeatCount = 10,在每一次repeat结束时是否有回调?
    4 条回复    2015-02-03 09:15:58 +08:00
    keithellis
        1
    keithellis  
       2015-02-02 23:45:36 +08:00
    不会
    keithellis
        2
    keithellis  
       2015-02-02 23:47:38 +08:00
    等到动画重复10遍完毕后再调用 animationDidStop
    jseanj
        3
    jseanj  
    OP
       2015-02-03 08:44:41 +08:00
    @keithellis 如果我想在每次repeat结束时回调,有啥方法吗?
    keithellis
        4
    keithellis  
       2015-02-03 09:15:58 +08:00
    repeatCount = 1;animationDidStop 里再去 resume。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5478 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.