I'm showing a Twitter feed in a UITableView on the iPhone. Scrolling performance is an issue, so I'm doing my own drawing in table cells -- that is, cells have no subviews, and they draw their content with drawRect:. In drawRect: cells draw tweets' text using the drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment: method, rather than creating a UITextView. I'm following Apple's fifth example in TableViewSuite
I want hyperlinks in the tweets to be active. They should be blue and underlined, and when the user taps a hyperlink I want to push a UIWebViewController. The rest of the text will be black.
How can I draw text in two styles (regular text is black, hyperlinks blue and underlined), and how can I detect if the user has tapped on a hyperlink, rather than on regular text?