Fix the defaultLoopCount function during refactory

This commit is contained in:
DreamPiggy 2019-09-20 16:01:14 +08:00
parent 786d5f8173
commit a657d970e4
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@
#pragma mark - Utils #pragma mark - Utils
+ (NSUInteger)imageLoopCountWithSource:(CGImageSourceRef)source { + (NSUInteger)imageLoopCountWithSource:(CGImageSourceRef)source {
NSUInteger loopCount = 1; NSUInteger loopCount = self.defaultLoopCount;
NSDictionary *imageProperties = (__bridge_transfer NSDictionary *)CGImageSourceCopyProperties(source, nil); NSDictionary *imageProperties = (__bridge_transfer NSDictionary *)CGImageSourceCopyProperties(source, nil);
NSDictionary *containerProperties = imageProperties[self.dictionaryProperty]; NSDictionary *containerProperties = imageProperties[self.dictionaryProperty];
if (containerProperties) { if (containerProperties) {