SKStatefulTableViewController icon indicating copy to clipboard operation
SKStatefulTableViewController copied to clipboard

When loading is slow the table rows are jumping.

Open internalG opened this issue 9 years ago • 4 comments

It seems the scroll offset is still going when new data is not arriving yet. It's clearer when you scroll faster. The old rows stays at bottom with animation. But when new rows are added, the old rows jump up instead of staying at bottom.

internalG avatar Sep 08 '16 11:09 internalG

I'm afraid I don't understand what you mean. Can you give an example on how to reproduce this issue using the Demo project?

shiki avatar Sep 12 '16 02:09 shiki

I tried some debugging, just find the code dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ is the key! Without it, inserting rows causes some flickers in table. And below code won't work too. dispatch_async(dispatch_get_main_queue(), ^{

So why the 1 second pause is a must?

internalG avatar Sep 22 '16 08:09 internalG

Is that a code in the demo?

shiki avatar Sep 22 '16 12:09 shiki

Right.

internalG avatar Sep 23 '16 02:09 internalG