I have an UIImageView called "theImageView", with UIImage in a single color (transparent background) just like the left black heart below. How can I change the tint color of this image programmatically in iOS 7 or above, as per the tint method used in the iOS 7+ Navigation Bar icons?
Can this method also work in WatchKit for an Apple Watch app?
In storyboard and image Assets. you can change this two also:
Update the Render Mode to Template Image
Update the tint Color in Views.
Swift 4
Change tint of UIImage SVG / PDF, that work for image with unique color :
Change tint of UIImageView, that work for image with unique color :
Change tint of UIImage for picture, use that :
Subclass which can be used from code and Interface Builder as well:
With Swift
Try this
http://robots.thoughtbot.com/designing-for-ios-blending-modes
or
iOS
Solution for doing it from InterfaceBuilder, set templateImage param in keyPath and choose you tint color from IB
}