I'm processing data fetched from a server in chunks. Every time a chunk is ready to be displayed (which happens every 0.1 seconds), I update the table view to reflect the changes.
To do so, I'm using insertRowsAtIndexPaths:withRowAnimation:
to insert each row into my UITableView as soon as the data becomes available. On the Simulator, this works great. However, on the device, the table view doesn't do anything until all the data is fetched and then animates all the rows at once, even though all the UITableViewDataSource methods do get called properly as soon as the data becomes available.
I made a small test and the UITableView does animate the row insertions correctly (one-by-one) if I purposely delay the data flow by making the thread that serves the data sleep.
Does UITableView prevent many rows getting inserted one-by-one and just adds them as a group instead?
Thanks!
--ryst