Why is my UIButton.tintColor not working?

后端 未结 13 1093
长情又很酷
长情又很酷 2020-12-03 04:15

My build target is set for IOS5 which is where I understand UIButton.tintColor was introduced...

I have this in my viewDidLoad for the View Controller

13条回答
  •  心在旅途
    2020-12-03 04:48

    Make sure your button "type" is set to System. If it is set to Custom it could be the reason the color of your button isn't changing. This is what happened to me and changing the type to System fixed it.

提交回复
热议问题