Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable the click event of button in iPhone

I am new to iPhone development.

In my application,

i want to disable the click event of button when it pressed first time by the user. for that purpose i tried

buttonname.Enable=FALSE;

But the image of button also goes washed like a disable. i Want to show Image properly and button should be disabled, both at time. what to do? Please help me. Thanks For Your Time.

like image 946
Will Smith Avatar asked Sep 03 '12 12:09

Will Smith


1 Answers

Set buttonname.userInteractionEnabled = NO; This will disable the action of the buttonname but the UIButton will be shown. Only the clicked event will not work.

like image 77
IronManGill Avatar answered Oct 06 '22 18:10

IronManGill