Label with more than one line - how?

Hey there,


how can I create a label with more than one line?


I tried to make a label with width of 300 and height of 200 and a long text, but the label is still in one line.

I also select "Line Break:" > "Word Wrap" in Assistance Editor.


What should I do now?

Accepted Reply

As noted, use the 'Lines' value for the label in IB - set it to 0 for unlimited, or if you know how many lines you need exactly, use that #. Additionally, be sure to set the label height to accomodate your string when rendered. Test live to confirm.

Replies

In IB, select the label.


Set the number of lines to whatever you want (in Attributes Inspector)

As noted, use the 'Lines' value for the label in IB - set it to 0 for unlimited, or if you know how many lines you need exactly, use that #. Additionally, be sure to set the label height to accomodate your string when rendered. Test live to confirm.