0
我想爲UIImageView着色,但是現在當我着色並使用控件(例如按下按鈕)時,色調消失。有什麼想法嗎?Tint UIImageView永久
class func tintImageView(imageView : UIImageView, withColor color:UIColor) {
var coloredImage = imageView.image?.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
imageView.image = coloredImage
imageView.tintColor = color
}