改色有很多细节,我们这里只探讨最简单的,全部有色点改色
var newImage = image.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
UIGraphicsBeginImageContextWithOptions(newImage.size, false, newImage.scale);
UIColor.redColor().set()
newImage.drawInRect(CGRectMake(0,[......]
ios中UIImage中改色的问题
Leave a reply