|
|
#1 |
|
Setting a Buttons title
Sorry for the noob question but I cannot figure out how to set a Buttons text
I tried using "button.text" and "button.title." Thanks |
|
|
|
0
|
|
|
#2 |
|
Did you try looking at the class reference for UIButton? Especially around the setTitle instance methods?
__________________
|
|
|
|
0
|
|
|
#3 |
|
yes, i made sure to look at those thoroughly before posting and I didnt see it.
|
|
|
|
0
|
|
|
#4 |
|
so you didn't see setTitle: forState:? hmmm you obviously weren't looking very hard. Anyway its used like [<nameOfButton> setTitle:@"Whatever" forState:UIControlStateNormal]; if you want to set the title of the button in general
__________________
DudeWare site:- http://www.dude-ware.co.uk DudeWare forum:- http://www.forum.dude-ware.co.uk Last edited by mccannmarc; Mar 28, 2009 at 08:01 PM. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| applescript studio, set button title issue.... | butteryak | Mac Programming | 0 | May 14, 2011 02:52 PM |
| Tabbar button title displays only after the tab button is clicked | kingthong | iPhone/iPad Programming | 2 | Nov 18, 2010 08:11 AM |
| How do I change a buttons title when it is clicked? | glossywhite | Mac Programming | 5 | Sep 2, 2009 06:18 AM |
| how to change button title using object id in IB? | Sergio10 | iPhone/iPad Programming | 11 | Apr 27, 2009 09:51 AM |
| Back button title | sujithkrishnan | iPhone/iPad Programming | 5 | Mar 4, 2009 02:23 PM |
All times are GMT -5. The time now is 12:25 PM.






I support the 

Linear Mode

