Rename UIImage+ForceDecode method with sd prefix to avoid name conflict
This commit is contained in:
parent
b6e108a5b1
commit
dc5d7d189d
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue