On iOS, there is no proper UIRichTextView . This is high on my wish list for iOS 6 (and there is some reason to believe that we can get it then due to the release of pages).
Your options should use multiple UILabel , NSString UIKit Additions , Core Text, UIWebView or one of several third-party frameworks such as
- NSAttributedString-HTML-Add-ons
- CoreTextWrapper
- OHAttributedLabel
- Omniui
All current solutions have different problems. The most common problem is that it is difficult to use the select and copy functions to work with rich text if you are not using a web view. Web views are incredibly annoying because they are asynchronous and you have to do a lot of your interactions in JavaScript.
I want a better answer.
(Mandatory shilling: this topic is covered in detail in Chapter 18 of iOS 5 Programming Pushing the Limits .)
source share