Q: Emulating UITextView text rendering with CoreText? I'm attempting to create a TextView with the ability to highlight various words. I don't want to use the attributedText property in iOS 6 because I want to support iOS 5 and because of other issues (see here for example: UITextView attributedText and syntax highlighting). 
So the only option I've got is to use CoreText. I found this project: https://github.com/KayK/RegexHighlightView. What it basically does is overrides the drawRect method of the UITextView and draws the contents with CoreText. The problem is that the Core Text rendering is different from UITextView rendering - which leads the cursor to be in a wrong place (gets worse as the text gets longer). 
Is there any hope to fix this issue? Maybe some other clever approach?

A: Try this:
https://github.com/mattt/TTTAttributedLabel
TTTAttributedLabel supports iOS 4.0 and higher.

A: Try EGOTextView. Or you can do the webView way. (UITextView actually does this under the hood mostly)
