I iphonedevelop18 macrumors member Original poster Feb 26, 2009 50 0 Mar 28, 2009 #1 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
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
dejo Moderator emeritus Sep 2, 2004 15,982 454 The Centennial State Mar 28, 2009 #2 Did you try looking at the class reference for UIButton? Especially around the setTitle instance methods?
Did you try looking at the class reference for UIButton? Especially around the setTitle instance methods?
I iphonedevelop18 macrumors member Original poster Feb 26, 2009 50 0 Mar 28, 2009 #3 yes, i made sure to look at those thoroughly before posting and I didnt see it.
mccannmarc macrumors 6502 Aug 15, 2008 270 0 Manchester, UK Mar 28, 2009 #4 iphonedevelop18 said: yes, i made sure to look at those thoroughly before posting and I didnt see it. Click to expand... 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
iphonedevelop18 said: yes, i made sure to look at those thoroughly before posting and I didnt see it. Click to expand... 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