Display Paragraphs in UITextView without \n
问题 Is there a convenient way to format a rather long string with paragraphs in it (like below) to have it with \n in it so the textView will display the paragraphs as well? blah blah to @"blah\n\nblah" Thanks! 回答1: Here's a simple example assuming you have : A file named : myfile.txt A string variable to hold the file's content, let's name it : content A UITextView called :textView Write whatever you want in your text file and place it wherever you want in your Xcode project (usually import it