0

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?

itenyh
  • 1,921
  • 2
  • 23
  • 38

1 Answers1

1

this should work...

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

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

Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115