UIImage的category
.h文件
+ (instancetype)imageWithOriginalName:(NSString*)imageName;
.m文件
+ (instancetype)imageWithOriginalName:(NSString*)imageName
{
UIImage*image = [UIImage imageNamed:imageName];
return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}
网友评论