LSAnimator icon indicating copy to clipboard operation
LSAnimator copied to clipboard

如何设置整个动画链无限重复,而不是单单一个节点

Open jianmu297 opened this issue 8 years ago • 2 comments

jianmu297 avatar Aug 31 '17 11:08 jianmu297

@jianmu297 你好,非常感谢,我可能会在下一版更新中加入相关的接口。 关于这个问题你可以先参考我写的如下 Demo 达到效果:

- (void)repeatAnimationForever {
    // this is your custom animation chain
    _aView.ls_moveX(100).ls_background([UIColor redColor]).ls_thenAfter(1).ls_moveX(-100).ls_background([UIColor yellowColor]).ls_animate(0.5);
    
    // the block recursive call repeatAnimationForever
    _aView.ls_theFinalCompletion(^{
        [self repeatAnimationForever];
    });
}

Lision avatar Sep 01 '17 03:09 Lision

使用此方法后,当 程序退到后台之后, 再进入前台, 动画取消 ,而且 控件消失了,请问是哪的问题呢?

dong136279559 avatar May 30 '18 04:05 dong136279559