I would like to create a blog part of an app using a UITableView
. The table should have two sections and a grouped style. The first section is the blog and the second section of the table, comments. Blogs can be any size. When entering large amount of text, and by this I mean 10K words or more, with links or/and photos, the app crashes or does not display the text at all. Comments can also have a large amount of text as well as links and photos. It seems that UITableView
has its limitations. These are the problems I am facing:
- Memory
- Does not always display all the text (if it is too long)
- Scrolling lags
Any ideas on how to accomplish this? Should I try creating a table of my own with UITextViews
to try to mimic the behaviour of the UITableView
? Is there an easy way to implement it with Apple's UITableView
? I have not seen an app out there that does this. Any code that can help me get started? I also have to use NSAttributedString
for text formatting.
UPDATE:
Reading the documentation for tableView:heightForRowAtIndexPath:
found an important note which answers the question but not my problem.
Important: Due to an underlying implementation detail, you should not return values greater than 2009.