Tint UIButton's image from interface builder w

2019-03-17 05:48发布

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?

1条回答
Lonely孤独者°
2楼-- · 2019-03-17 05:52

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.

查看更多
登录 后发表回答