Fix FLAnimatedImageView+WebCache.m not got compiled
Because of missing SD_UIKIT definition.
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -6,9 +6,9 @@ | @@ -6,9 +6,9 @@ | ||
6 | * file that was distributed with this source code. | 6 | * file that was distributed with this source code. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | -#if SD_UIKIT | ||
10 | - | ||
11 | #import "FLAnimatedImageView+WebCache.h" | 9 | #import "FLAnimatedImageView+WebCache.h" |
10 | + | ||
11 | +#if SD_UIKIT | ||
12 | #import "objc/runtime.h" | 12 | #import "objc/runtime.h" |
13 | #import "UIView+WebCacheOperation.h" | 13 | #import "UIView+WebCacheOperation.h" |
14 | #import "UIView+WebCache.h" | 14 | #import "UIView+WebCache.h" |
@@ -53,9 +53,9 @@ | @@ -53,9 +53,9 @@ | ||
53 | options:options | 53 | options:options |
54 | operationKey:nil | 54 | operationKey:nil |
55 | setImageBlock:^(UIImage *image, NSData *imageData) { | 55 | setImageBlock:^(UIImage *image, NSData *imageData) { |
56 | - SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:data]; | 56 | + SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:imageData]; |
57 | if (imageFormat == SDImageFormatGIF) { | 57 | if (imageFormat == SDImageFormatGIF) { |
58 | - weakSelf.animatedImage = [FLAnimatedImage animatedImageWithGIFData:data]; | 58 | + weakSelf.animatedImage = [FLAnimatedImage animatedImageWithGIFData:imageData]; |
59 | weakSelf.image = nil; | 59 | weakSelf.image = nil; |
60 | } else { | 60 | } else { |
61 | weakSelf.image = image; | 61 | weakSelf.image = image; |
-
Please register or login to post a comment