Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 15, 2008, 10:55 PM   #1
Moon013
macrumors newbie
 
Join Date: Jul 2008
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.
Moon013 is offline   0 Reply With Quote
Old Jul 18, 2008, 03:10 PM   #2
grimjim
macrumors member
 
Join Date: May 2003
Can you not simply do:
Code:
[button setEnabled:NO];
I haven't tried it on the device yet, but it works in the simulator.
grimjim is offline   0 Reply With Quote
Old Jul 20, 2008, 08:33 PM   #3
Moon013
Thread Starter
macrumors newbie
 
Join Date: Jul 2008
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.
Moon013 is offline   0 Reply With Quote
Old Jul 24, 2008, 03:53 AM   #4
Moon013
Thread Starter
macrumors newbie
 
Join Date: Jul 2008
Oops, I didn't link my button...Now it works!

So sorry about it and as well thanks.
Moon013 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC