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

前端 未结 5 1233
忘了有多久
忘了有多久 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:28

    You said you set a custom image for the UIControlStateHighlighted state. This should disable the default behaviour.

    If you still have problems you can disable this effect by setting the adjustsImageWhenHighlighted property to NO and use whatever custom effect you want.

提交回复
热议问题