|
|
#1 |
|
Making an "unclickable" button
Hi,
I am currently working on a button (a UIButton type provided in Interface builder), which will turns to be "unclickable" after clicked for the first time. I expect the button to change color, informing the user that the button cannot be clicked anymore. Is there a way to do it? I have gone through the UIButton header file and can't seem to find a way to make that happen... In addition, I wanted to change the text too. The UIButton provides a variable called *_titleView. But it seems it is not the one that changes the text. Last edited by Moon013; Jul 15, 2008 at 11:11 PM. |
|
|
|
0
|
|
|
#2 |
|
Can you not simply do:
Code:
[button setEnabled:NO]; |
|
|
|
0
|
|
|
#3 |
|
I had written that line of code and is being put into a function which is triggered only when the button is clicked. So by right, when clicked, function triggered, the button should be made unclickable, but still it doesn't work...
Last edited by Moon013; Jul 20, 2008 at 10:16 PM. |
|
|
|
0
|
|
|
#4 |
|
Oops, I didn't link my button...Now it works!
So sorry about it and as well thanks.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Making an image a button | hoosierfan24 | iPhone/iPad Programming | 2 | Sep 15, 2009 08:56 PM |
| Why Apple Makes a One Buttoned Mouse | wrldwzrd89 | Macintosh Computers | 15 | Feb 1, 2005 07:08 PM |
| How to make the thumb button on mouse go "back" | micsaund | General Mac Discussion | 6 | Oct 7, 2004 10:48 AM |
| Why wont Apple make a 2 button Mouse? | MacSA | General Mac Discussion | 64 | Oct 7, 2004 08:49 AM |
| Will Apple make an iPod with a Microphone and record button? | GeneR | Macintosh Computers | 7 | Jan 23, 2003 11:58 AM |
All times are GMT -5. The time now is 11:30 AM.






Linear Mode

