• 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
add crlf to UITextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add crlf to UITextView


  • Subject: add crlf to UITextView
  • From: koko <email@hidden>
  • Date: Wed, 25 May 2011 12:10:47 -0600

I have set the text property of myUITextView.  Now I want to add more text that is preceded by a crlf.  I do this:

m_notes.text = [m_notes.text stringByAppendingString:[m_backing objectAtIndex:index]];

where objectAtIndex:index is @"\r\n\r\nText to add"

The result is not what I expected ... \r\n\r\n appears in the text.

How does one get crlf into a UITextView?

koko

"Don't fight the framework."
--Kyle Sluder

_______________________________________________

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

  • Follow-Ups:
    • Re: add crlf to UITextView
      • From: Charles Srstka <email@hidden>
    • Re: add crlf to UITextView
      • From: Phillip Mills <email@hidden>
  • Prev by Date: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Next by Date: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Previous by thread: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Next by thread: Re: add crlf to UITextView
  • Index(es):
    • Date
    • Thread