Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off button shadow on button press of UIButton?

I've created a UIButton in InterfaceBuilder. When a user presses the button, the entire button is shaded grey. Is there a way to alter this behavior so the button is no longer shaded grey when the button is pressed?

like image 608
user840930 Avatar asked Aug 22 '11 20:08

user840930


1 Answers

Uncheck "Highlighted Adjusts Image" in Interface Builder.

Alternatively, set the adjustsImageWhenHighlighted property of the UIButton to NO.

like image 122
Evan Mulawski Avatar answered Nov 15 '22 20:11

Evan Mulawski