I had a similar problem, and used UITableView
as a solution. Each cell in the table view can be a custom view. (Text/Label/Image as you'd like it to be)
For your text, you may simply have a WebView
embedded into one of the table view cells, while making sure that the delegate for the webView's scrollView is set to the TableView.
Based on problems that people usually face with webView in TableView you may have to detect the content size of your text and dynamically resize the cell height, and call reload.
There's yet another possible approach you could take (if you want to avoid UIWebView
) - NSAttributedString
. You may set the cell's `textLabel?.attributedText' to an attributed string, which would preserve the desired effect you want.
And before you do that, make sure you set the 'cell.textLabel?.numberOfLines' to 0.