Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get UITextView to respect newlines in Interface Builder?

I have a simple app with a UITextView embedded into a UIScrollView. Interface Builder won't let me add multiple newlines for spacing; when I hit return it sees that as "end of input" rather than appending the newline to the UITextView.

How can I get it to accept newlines for spacing?

like image 980
George Armhold Avatar asked May 13 '09 23:05

George Armhold


2 Answers

Much simpler (and more IB based) than previous answers:

Just Alt + ENTER It will send a newline to the UITextView.

like image 62
Aviad Ben Dov Avatar answered Sep 22 '22 08:09

Aviad Ben Dov


Write up your text in TextEdit, then copy/paste it in.

like image 41
Simon Woodside Avatar answered Sep 21 '22 08:09

Simon Woodside