标签:uiimage nsstring pre bsp render eal image blog span
给UIImage+ZT.h添加一个分类,便于使用,添加一个类方法 + (UIImage *)imageWithRenderingOriginalName :(NSString *)imageName;
代码如下:
1 #import "UIImage+ZT.h" 2 3 @implementation UIImage (ZT) 4 5 + (UIImage *)imageWithRenderingOriginalName :(NSString *)imageName{ 6 7 UIImage *image = [UIImage imageNamed:imageName]; 8 return [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 9 } 10 @end
标签:uiimage nsstring pre bsp render eal image blog span
原文地址:http://www.cnblogs.com/loveDodream-zzt/p/6100232.html