How to set loop for playing APNG ???
slacken-github opened this issue · 1 comments
slacken-github commented
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 commented
Inherit YYImage, and override the method - (NSUInteger)animatedImageLoopCount; return the count you want.It's work for me.