UIImage+Image.h

#import 

@interface UIImage (Image)


// 快速的返回一个最原始的图片
+ (instancetype)imageWithOriRenderingImage:(NSString *)imageName;

@end

#import "UIImage+Image.h"

@implementation UIImage (Image)
+ (instancetype)imageWithOriRenderingImage:(NSString *)imageName
{
    UIImage *image = [UIImage imageNamed:imageName];
    return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}
@end

你可能感兴趣的:(UIImage+Image.h)