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

Bayan

macrumors newbie
Original poster
Apr 13, 2012
23
0
Greetings everyone,

Does any one know how to hide the title of a UIButton?

I want to put data in it to use it in my code but I don't want it displayed.

Thanks in advance!
 
As far as I know the only way to have a button up with no text is to set the text to an empty string "" or perhaps nil.

Buttons have states too, so if you want the title to appear under a particular state, you could try setting the title for each state and then the system will take care of displaying the title.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.