Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am trying to make a new line in Xcode 4.2 UITextView, and when I do alt+return, it goes to the next line, but does not show up when built and ran.

like image 999
t3hcakeman Avatar asked Jan 26 '12 14:01

t3hcakeman


2 Answers

ALT + Enter makes a new line in storyboard

like image 43
Michal Zaborowski Avatar answered Sep 22 '22 06:09

Michal Zaborowski


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.

like image 148
Graham Perks Avatar answered Sep 23 '22 06:09

Graham Perks