34

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?

rounak
  • 9,217
  • 3
  • 42
  • 59

1 Answers1

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