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:
- Grab a string from CoreData.
- Copy the string into an NSMutableAttributedString.
- Parse the string and modify the attributes of portions of the text.
- 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?