I have a UIButton
whose image
property I'm setting from interface builder. I want this image to be tinted with the superview's tintColor
. With code, I can set the image's rendering mode to UIImageRenderingModeAlwaysTemplate
, but how do I do this from interface builder?
Asked
Active
Viewed 5,540 times
34

rounak
- 9,217
- 3
- 42
- 59
1 Answers
78
Got it after a bit of looking around. I had the button type as custom in IB, but switching it to system type now uses the template rendering mode for the UIButton
's image
.

rounak
- 9,217
- 3
- 42
- 59
-
1Thanks for following up on your own question! – Scott Berrevoets Dec 16 '14 at 21:38
-
Like [UIButton buttonWithType:UIButtonTypeSystem]; – naz Oct 17 '15 at 06:31
-
Thanks a lot for following up - this helped me. – Cortado-J Oct 07 '16 at 12:00