Helmut Januschka Helmut Januschka - 3 months ago 26
iOS Question

UICollectionview insertItemsAtIndexPaths stops scrolling

I have an infinite loading collectionview – adding new items with:

insertItemsAtIndexPaths


But every time I call
insertItemsAtIndexPaths
the scrolling stops
insertItemsAtIndexPaths
runs on the mainthread as it has to

Is there any way I can prevent
insertItemsAtIndexPaths
from stopping the scroll?
(I mean the fast scroll)

Regards

Answer

so i answer my own question :)

moved the code that triggers the insertItemsAtIndexPath from scrollViewDidScroll to scrollViewDidEndDecelerating - solves the issue :)

Comments