Multi-line uibutton
4 answers
Hello,
There is a UIButton property called lineBreakMode that will allow you to add multi-line headers. The two main things I would install are UILineBreakModeWordWrap or UILineBreakModeCharacterWrap.
UILineBreakModeWordWrap wraps the last word and UILineBreakModeCharacterWrap wraps the last file.
as follows: instanceOfUIButton.lineBreakMode = UILineBreakModeWordWrap;
or instanceOfUIButton.lineBreakMode = UILineBreakModeCharacterWrap;
hope that what you are after
+2
a source to share
Please don't use subviews.
someButton.lineBreakMode = UILineBreakModeWordWrap;
this is the correct way to do it. There is a tutorial for the German community!
http://bedifferently.wordpress.com/2011/11/16/uibutton-bearbeite-den-titel-teil-1/
+1
a source to share