How to enter a new line in a UITextView in IB

I am just trying to enter some default text in a UITextView. There are several paragraphs, and I wanted to separate the paragraphs with a new line. However, when I press the enter button, it just completes the data entry.

How can I enter a new line when creating the default text for a UITextView in an interface builder?

+4
source share
2 answers

It is very simple, you need to write your paragraph and then press SHIFT + ALT + ENTER at the same time when you want to create a new line.

He also works with UILabels.

+14
source

You can avoid the special keys that are interpreted by the text system by first entering ^-Q (control-Q). This works for return , tabs , etc. In almost all places of OS X.

+1
source

All Articles