How do I implement a control that wraps text with multiple styles and allows touch actions on individual text components?
===

I've attached a picture taken from the Trover iOS app. It shows a table cell rendering user comments for a posted item (trove?). I am trying to implement similar functionality and it's not clear what a good implementation method would be.

The requirements are:

1) Text components with varying styles can be rendered within a rectangle and wrap to multiple lines

2) Each text component can have it's own 'selected' state and touch action (i.e. like a UIButton)

3) The overall height of the control can be calculated (for use in a UITableViewCell when calculating the height of the cell).

Example pic from Trover (public data so I have not obscured user names):

![trover pic][1]


  [1]: http://i.stack.imgur.com/ODzMx.png

Thanks for any help/suggestions!