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):

Thanks for any help/suggestions! Would love an example implementation of anything similar if anyone can point me to it.
The answer is to use NSAttributedStrings and Core Text for rendering. There are a few controls that make this easier such as OHAttributedLabel and TTTAttributedLabel.