UITextView adding text to new line
- by Subro
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!