Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enter a new line in UITextView in IB

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?

like image 903
Jack BeNimble Avatar asked Dec 07 '22 19:12

Jack BeNimble


2 Answers

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.

like image 68
Aitul Avatar answered May 19 '23 00:05

Aitul


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.

like image 41
Daniel Eggert Avatar answered May 19 '23 01:05

Daniel Eggert