Change colour of dark grey highlight when holding down custom UIButton?

前端 未结 5 1169
忘了有多久
忘了有多久 2021-02-02 07:56

I have a custom UIButton which is a cloud, transparent black and white .png file, with no down state, just one image. When tapping and holding the finger over it, i

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 08:16

    If adjustsImageWhenHighlighted = NO is not working, set Button-Type to Custom (IB or programmatically).

    Default Button-Type: System, changes behavior of highlighted button.

提交回复
热议问题