Fix FLAnimatedImageView+WebCache.m not got compiled

Because of missing SD_UIKIT definition.
This commit is contained in:
Alexander Belyavskiy 2016-10-03 09:29:24 +03:00
parent d6fa29c88a
commit a347abad89
No known key found for this signature in database
GPG Key ID: 5DF1D8F3E2366ACC
1 changed files with 4 additions and 4 deletions

View File

@ -6,9 +6,9 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
#if SD_UIKIT
#import "FLAnimatedImageView+WebCache.h" #import "FLAnimatedImageView+WebCache.h"
#if SD_UIKIT
#import "objc/runtime.h" #import "objc/runtime.h"
#import "UIView+WebCacheOperation.h" #import "UIView+WebCacheOperation.h"
#import "UIView+WebCache.h" #import "UIView+WebCache.h"
@ -53,9 +53,9 @@
options:options options:options
operationKey:nil operationKey:nil
setImageBlock:^(UIImage *image, NSData *imageData) { setImageBlock:^(UIImage *image, NSData *imageData) {
SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:data]; SDImageFormat imageFormat = [NSData sd_imageFormatForImageData:imageData];
if (imageFormat == SDImageFormatGIF) { if (imageFormat == SDImageFormatGIF) {
weakSelf.animatedImage = [FLAnimatedImage animatedImageWithGIFData:data]; weakSelf.animatedImage = [FLAnimatedImage animatedImageWithGIFData:imageData];
weakSelf.image = nil; weakSelf.image = nil;
} else { } else {
weakSelf.image = image; weakSelf.image = image;