Skip to content

Commit

Permalink
Merge pull request #2543 from langyanduan/master
Browse files Browse the repository at this point in the history
fix: FLAnimatedImage custom property
  • Loading branch information
zhongwuzw committed Nov 29, 2018
2 parents 4fd0e83 + f47d60a commit 2bdc51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDWebImage/FLAnimatedImage/FLAnimatedImageView+WebCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
FLAnimatedImage *animatedImage;
// Compatibility in 4.x for lower version FLAnimatedImage.
if ([FLAnimatedImage respondsToSelector:@selector(initWithAnimatedGIFData:optimalFrameCacheSize:predrawingEnabled:)]) {
if ([FLAnimatedImage instancesRespondToSelector:@selector(initWithAnimatedGIFData:optimalFrameCacheSize:predrawingEnabled:)]) {
animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:imageData optimalFrameCacheSize:imageView.sd_optimalFrameCacheSize predrawingEnabled:imageView.sd_predrawingEnabled];
} else {
animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:imageData];
Expand Down

0 comments on commit 2bdc51e

Please sign in to comment.