Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonedevelop18

macrumors member
Original poster
Feb 26, 2009
50
0
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
 

mccannmarc

macrumors 6502
Aug 15, 2008
270
0
Manchester, UK
yes, i made sure to look at those thoroughly before posting and I didnt see it.

so you didn't see setTitle: forState:? hmmm you obviously weren't looking very hard. Anyway its used like [<nameOfButton> setTitle:mad:"Whatever" forState:UIControlStateNormal]; if you want to set the title of the button in general
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.