views:

64

answers:

0

I am developing an iPhone app and want to be able to use an NSMutableAttributedString inside a ScrollView. Here are the steps I want to follow:

  1. Grab a string from CoreData.
  2. Copy the string into an NSMutableAttributedString.
  3. Parse the string and modify the attributes of portions of the text.
  4. Display the NSMutableAttributedString inside a ScrollView.

How can I do this?

If I am reading the docs correctly, only CoreText naitively supports display of attributed strings on the iPhone. Is that correct? If so, how can I create a CoreText object when I don't know how the Y value for the CGRect?