Is it appropriate to call [tableView beginUpdates]
and [tableView endUpdates]
in cellforRowAtIndexPath
?
I am trying to dynamically expand cell heights based on the content within the cell. When I use [tableView beginUpates]
and [tableView endUpdates]
in cellForRowAtIndexPath
, the output looks ok. However, once I start scrolling, data in the cells becomes ordered incorrectly and sometimes the bar separator between table cells disappears.
Should I not be using [tableView beginUpdates]
and [tableView endUpdates]
for this?
Thanks!