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.
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.