itenyh
itenyh

Reputation: 1939

How to change line in the UITextView with xib file

I use UITextView to hold some infomation, and I have edited the text in the .xib file. The line will be changed when the current line has no space. The problem is that I don`t not how to change line when I want to. Look at the pic below:

enter image description here

I have try to use "\n" or "\\n", but it is displayed as text. I want to know how can I change line in the .xib file?

Upvotes: 0

Views: 429

Answers (1)

Ankit Srivastava
Ankit Srivastava

Reputation: 12405

this should work...

textView.text=@"Ankit \r Srivastava";

this should give you both the words in different rows...

Upvotes: 1

Related Questions