fix: FLAnimatedImage custom property
This commit is contained in:
parent
4fd0e83521
commit
f47d60a802
|
@ -22,7 +22,7 @@ static inline FLAnimatedImage * SDWebImageCreateFLAnimatedImage(FLAnimatedImageV
|
||||||
}
|
}
|
||||||
FLAnimatedImage *animatedImage;
|
FLAnimatedImage *animatedImage;
|
||||||
// Compatibility in 4.x for lower version FLAnimatedImage.
|
// 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];
|
animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:imageData optimalFrameCacheSize:imageView.sd_optimalFrameCacheSize predrawingEnabled:imageView.sd_predrawingEnabled];
|
||||||
} else {
|
} else {
|
||||||
animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:imageData];
|
animatedImage = [[FLAnimatedImage alloc] initWithAnimatedGIFData:imageData];
|
||||||
|
|
Loading…
Reference in New Issue