UIButton background color for highlighted/selected state issue

前端 未结 6 1858
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 18:47

I\'ve a UIButton and I\'ve created an extension to add background color for different state.

I\'m using the following code:



        
6条回答
  •  醉梦人生
    2021-02-18 19:47

    I found the issue, UIButton was set to System.I simply changed it to Custom, it started working as expected.

提交回复
热议问题