Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to enable the "show Touch On highlight" in iphone?

Anyone can help me to enable the "show Touch on Highlight" property of uibutton. I know we can check in the xib editor. But it is not working. Do we have any other option to enable that ?

like image 761
Sharme Avatar asked Dec 06 '11 12:12

Sharme


1 Answers

Either use

yourButton.showsTouchWhenHighlighted = YES;

or use

yourButton.adjustsImageWhenHighlighted = YES;

to change the image of button when the button is highlighted.

like image 78
vipul Avatar answered Oct 21 '22 17:10

vipul