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

DownloadButton 动画问题 #4

Open
1xiaocainiao opened this issue Dec 2, 2015 · 1 comment
Open

DownloadButton 动画问题 #4

1xiaocainiao opened this issue Dec 2, 2015 · 1 comment

Comments

@1xiaocainiao
Copy link

您好,感谢分享这么好的demo,发现一个问题,当开始进度条动画的时候,快速点击触发tap事件,会报错: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored.Please fix this problem.
然后动画就彻底失效了,原demo也有这个问题,不知道怎么回事,望解答

@liwenDeng
Copy link

@1xiaocainiao 我也遇到这个问题,问题出在 -(void)tapped:(UITapGestureRecognizer *)tapped 中,需要将 originframe 的赋值顺序改为

 -(void)tapped:(UITapGestureRecognizer *)tapped {
  //originframe = self.frame;
  if (animating == YES) {
        return;
    }
   originframe = self.frame;
  ....
}

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

2 participants