代码改变图片的颜色

UIImage *image = [UIImage imageNamed:@"imageName"];
self.ImageView.image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[image setTintColor:[UIColor redColor]];

背景透明

self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.02];

你可能感兴趣的:(代码改变图片的颜色)