Authored by 拔萝卜的☂Tank

Update UIImage+MultiFormat.m

fix <Error>: ImageIO: CGImageSourceCreateWithData data parameter is nil bug
... ... @@ -18,6 +18,10 @@
@implementation UIImage (MultiFormat)
+ (UIImage *)sd_imageWithData:(NSData *)data {
if (!data) {
return nil;
}
UIImage *image;
NSString *imageContentType = [NSData sd_contentTypeForImageData:data];
if ([imageContentType isEqualToString:@"image/gif"]) {
... ...