How to set line break in Xcode shortcut?

I want to ask a stupid question about Xcode. I am using .xib to add a label to my interface, and I am printing something in the shortcut. For example, Hello World. How to set 2 words or 3 words in different lines?

Example:

Hello World // I do not want this

Hi // this is correct

Peace

Many thanks.

+3
source share
1 answer

I assume that you are talking about Cocoa xib, not the power of x. Draw the multi-line shortcut element from the library palette into your window, and then you can get multiple lines by wrapping words. If you need a hard line break, enter the return parameter when editing text.

+12
source

Source: https://habr.com/ru/post/1754915/


All Articles