My project consists of displaying a document in a UITextView. Most of the document is pretty straight forward attributed text and I have that working just fine. There are other parts of the document that consist of normal text and then a 3 column table with 2 or 3 rows basically right in the middle of the normal text.
After spending a fair amount of time searching the web I can't seem to find any reference to anyone doing anything like this.
Based on some tutorials I have read, I was thinking that maybe there was a way to create a subview consisting of a bunch of UILabels that would be subviews of a UIView (We'll call it _tabularView
)that I could layout on top of the UITextView. Then I could somehow position the frame of _tabularView
to the character range in the UITextView where it is supposed to be. I could then use an exclusion path to keep the text from going under the view. My only problem is that I am not exactly sure how to go about doing this and I am also worried that it wouldn't scroll with the rest of the content.
My question is, does anyone have any suggestions on how to accomplish this or a suggestion for a better way to embed a table in a UITextView.