How to implement highlighting on UIImage like UIButton does when tapped?
I need to replicate the effect that the UIButton does on an image when tapped, the highlighting. See: The original PNG is a square with alpha background. When I set it as UIButton's image it automatically apply an effect on the non-alpha pixels of the image. How to do this effect? You could achieve this with a simple category on UIImage: @interface UIImage (Tint) - (UIImage *)tintedImageUsingColor:(UIColor *)tintColor; @end @implementation UIImage (Tint) - (UIImage *)tintedImageUsingColor:(UIColor *)tintColor { UIGraphicsBeginImageContextWithOptions(self.size, NO, self.scale); CGRect drawRect