1 用代码解决
- (UIImage *)imageWithRenderingMode:(UIImageRenderingMode)renderingMode 按照原来的样子显示
使用示例:
UIImage *image = [UIImage imageNamed:@"name"];
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
2 可在存放图片的地方设置
1 用代码解决
- (UIImage *)imageWithRenderingMode:(UIImageRenderingMode)renderingMode 按照原来的样子显示
使用示例:
UIImage *image = [UIImage imageNamed:@"name"];
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
2 可在存放图片的地方设置