I have UIButton
s with images set that have white elements to them. The problem is that when UIButton.adjustsImageWhenHighlighted
is true
, then the white areas of the image are turned grey when pressing the button. I don't want UIButton
to have this effect on my image, so I set it to false
and it solves the problem. But now it is deprecated. What is the alternative solution to setting it to false
to achieve the same behavior without setting a .highlighted
image?
Replacement for `UIButton.adjustsImageWhenHighlighted`
Add a Comment