How to set the line break in Xcode label?
I want to ask an stupid question about the Xcode. I use the .xib to add a Label to my interface and I type something in the Label. For example, Hello World. How can I set the 2 words or 3 words in different lines?
Example:
Hello World // I don't want this
Hello // this is correct
World
Than开发者_如何学Gok you very much.
I'll assume you're talking about a Cocoa xib, not a Carbon xib. Draw a "multi-line label" item from the library palette into your window, and then you can get multiple lines by word wrapping. If you want a hard line break, type option-return while editing the text.
精彩评论