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

How to set loop for playing APNG ??? #146

Open
slacken-github opened this issue Dec 3, 2019 · 1 comment
Open

How to set loop for playing APNG ??? #146

slacken-github opened this issue Dec 3, 2019 · 1 comment

Comments

@slacken-github
Copy link

UIImage *image = [YYImage imageNamed:@"810.png"];
UIImageView *imageView = [[YYAnimatedImageView alloc] initWithImage:image];
[self.view addSubview:imageView];

It's work find. but playing infinity.

How to define loop number for playing.

Thank you.

@DerrickSun
Copy link

Inherit YYImage, and override the method - (NSUInteger)animatedImageLoopCount; return the count you want.It's work for me.

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