How to make a new line in UITextView in nib/storyboard? How to make a new line in UITextView in nib/storyboard? xcode xcode

How to make a new line in UITextView in nib/storyboard?


This works, I'm unsure what you are doing differently.

  • Drag out a UITextView.
  • Double-click it to edit text, place cursor where you want the paragraph break.
  • Option-Enter a couple of times to create a blank line & paragraph.

The paragraph shows at runtime. There's also a Text attribute that can be edited in the Attributes inspector.


ALT + Enter makes a new line in storyboard


In the attributes inspector, there is property 'Lines' to set how many lines of text.Change it to 2.