I'm just trying to enter some default text in a UITextView. There are a few paragraphs, and I wanted to separate the paragraphs with a new line. However, when I press enter, it just completes the entry of the data.
How can I enter a new line when creating the default text for a UITextView in the Interface Builder?
It is very easy, you have to write your paragraph and then push SHIFT+ALT+ENTER at the same time when you want a new line.
It also works with UILabels.
You can escape special keys being interpreted by the text system by entering ^-Q
(control-Q) first. That works for return, tab etc. in just about all places on OS X.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With