I use scrollToItemAtIndexPath:atScrollPosition:animated
to scroll UICollectionView
. I have to disable some functionality while this automatic scrolling is happening and then re-enable it, when scrolling ends. The problem occurs, when I try to scroll to some cell which is already visible and there is no scroll necessary (for example, it's the last cell and collection view is already scrolled until the very end). In this case scrollViewDidEndDragging
nor scrollViewDidEndDecelerating
are called.
Is there a way to know if scrollToItemAtIndexPath
will actually scroll UICollectionView
?