UIImage-RTTint 介绍
UIImage-RTTint 是 UIImage
的分类,可以很方便给图片进行染色(Tinting)、增加亮度(lightening)以及降低亮度(darkening)。
使用方法:
#import "UIImage+RTTint.h"
...
UIImage *image = [UIImage imageNamed:@"logo.png"];
UIImage *tinted = [image rt_tintedImageWithColor:[UIColor redColor] level:0.5f];


UIImage-RTTint 官网
https://github.com/raymondjavaxx/UIImage-RTTint