When an UIButton is pressed, the normal situation is that it will be highlighted i.e. a shadow like layer will cover the image. Is there a way to prevent this from happening? Is there an attribute to handle this?
When an UIButton is pressed, the normal situation is that it will be highlighted
Share
You normally don’t press a button with Xcode, you use your finger (or mouse). But nitpicking aside:
adjustsImageWhenHighlightedset toNOwill do the trick.