使用UIImage绘制能力
+ (UIImage *)chaneImage:(UIImage *)img toColor:(UIColor *)color {
UIGraphicsBeginImageContextWithOptions(img.size, NO, 0.0f);
[color setFill];
CGRect bounds = CGRectMake(0, 0, img.size.width, img.size.height);
UIRectFill(bounds);
[img drawInRect:bounds blendMode:kCGBlendModeOverlay alpha:1.0f];
[img drawInRect:bounds blendMode:kCGBlendModeDestinationIn alpha:1.0f];
UIImage *newImg = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImg;
}