UITextView adding text to new line

Posted by Subro on Stack Overflow See other posts from Stack Overflow or by Subro
Published on 2009-09-17T14:11:10Z Indexed on 2010/03/13 3:07 UTC
Read the original article Hit count: 879

Filed under:
|

I would like to add new lines of text to my UITextView for my iPhone app. Basically my textview starts with a single line, and as app advances, new lines are added. However I can add only to the end or beginning of the existing text. How can I make such an entry into a new line. Can I manually send \n to the textview.text at a calculated range/location.

E.g. of what I mean. line 1: This is first line of text. This is second line 2: line of text. ---

I want: line 1: This is first line of text. line 2: This is second line of text.

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitextview