Re: add crlf to UITextView
Re: add crlf to UITextView
- Subject: Re: add crlf to UITextView
- From: koko <email@hidden>
- Date: Wed, 25 May 2011 13:30:08 -0600
Thank you, Phillip. I used your example exactly.
I had changed the string I was appending to @"\n\nText to Add" which also did not work.
koko
"Don't fight the framework."
--Kyle Sluder
On May 25, 2011, at 1:23 PM, Phillip Mills wrote:
> 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
>
_______________________________________________
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