How can I change image tintColor in iOS and WatchKit

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?

enter image description here

25 Answers
25

Leave a Comment