• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: add crlf to UITextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: add crlf to UITextView (From: Phillip Mills <email@hidden>)

  • Prev by Date: Re: add crlf to UITextView
  • Next by Date: Re: add crlf to UITextView
  • Previous by thread: Re: add crlf to UITextView
  • Next by thread: Re: add crlf to UITextView
  • Index(es):
    • Date
    • Thread