Re: add crlf to UITextView
Re: add crlf to UITextView
- Subject: Re: add crlf to UITextView
- From: Phillip Mills <email@hidden>
- Date: Wed, 25 May 2011 15:19:06 -0400
On 2011-05-25, at 2:10 PM, koko wrote:
>
> How does one get crlf into a UITextView?
I've put things on a new line by doing essentially:
m_notes.text = [m_notes.text stringByAppendingFormat:@"\n\n%@", [m_backing objectAtIndex:index]];
At which point, the object would be @"Text to add". I'm not sure about '\r', not whether the do anything useful nor whether they work the same in a format string.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden