Rename UIImage+ForceDecode method with sd prefix to avoid name conflict

This commit is contained in:
DreamPiggy 2017-12-28 16:06:37 +08:00
parent b6e108a5b1
commit dc5d7d189d
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@
@interface UIImage (ForceDecode) @interface UIImage (ForceDecode)
+ (nullable UIImage *)decodedImageWithImage:(nullable UIImage *)image; + (nullable UIImage *)sd_decodedImageWithImage:(nullable UIImage *)image;
+ (nullable UIImage *)decodedAndScaledDownImageWithImage:(nullable UIImage *)image; + (nullable UIImage *)sd_decodedAndScaledDownImageWithImage:(nullable UIImage *)image;
@end @end

View File

@ -11,7 +11,7 @@
@implementation UIImage (ForceDecode) @implementation UIImage (ForceDecode)
+ (UIImage *)decodedImageWithImage:(UIImage *)image { + (UIImage *)sd_decodedImageWithImage:(UIImage *)image {
if (!image) { if (!image) {
return nil; return nil;
} }
@ -19,7 +19,7 @@
return [[SDWebImageCodersManager sharedInstance] decompressedImageWithImage:image data:&tempData options:@{SDWebImageCoderScaleDownLargeImagesKey: @(NO)}]; return [[SDWebImageCodersManager sharedInstance] decompressedImageWithImage:image data:&tempData options:@{SDWebImageCoderScaleDownLargeImagesKey: @(NO)}];
} }
+ (UIImage *)decodedAndScaledDownImageWithImage:(UIImage *)image { + (UIImage *)sd_decodedAndScaledDownImageWithImage:(UIImage *)image {
if (!image) { if (!image) {
return nil; return nil;
} }