Why is my UIButton.tintColor not working?

后端 未结 13 1074
长情又很酷
长情又很酷 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

    According to the documentation:

    This property is not valid for all button types.

    You need to switch your buttonType to another one of these. (Unfortunately, the documentation does not specify which specific button types support this property.)

提交回复
热议问题