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

iphonedevelop18

macrumors member
Original poster
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
 
Did you try looking at the class reference for UIButton? Especially around the setTitle instance methods?
 
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😡"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.