按钮选中时 设置图标不变暗
button.adjustsImageWhenHighlighted = false
设置禁用状态图标不变暗
button.adjustsImageWhenDisabled = false
button.adjustsImageWhenHighlighted = false
button.adjustsImageWhenDisabled = false
本文标题:【Swift】UIButton设置选中状态和禁用状态图标不变暗
本文链接:https://www.haomeiwen.com/subject/ifcuuttx.html
网友评论