LSAnimator
LSAnimator copied to clipboard
如何设置整个动画链无限重复,而不是单单一个节点
@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];
});
}
使用此方法后,当 程序退到后台之后, 再进入前台, 动画取消 ,而且 控件消失了,请问是哪的问题呢?