ibireme/YYImage

How to set loop for playing APNG ???

slacken-github opened this issue · 1 comments

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.

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