Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jianmu297 opened this issue Aug 31, 2017 · 2 comments
Open

Comments

@jianmu297
Copy link

No description provided.

@Lision
Copy link
Owner

Lision commented Sep 1, 2017

@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 Lision closed this as completed Dec 31, 2017
@Lision Lision reopened this Dec 31, 2017
@dong136279559
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants