Reputation: 1939
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:
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
Reputation: 12405
this should work...
textView.text=@"Ankit \r Srivastava";
this should give you both the words in different rows...
Upvotes: 1