代码改变图片的颜色
2022-05-07 本文已影响0人
杨继磊
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];