I'm using a infinitive scrolling feature similar to this. Now my problem is that I want to set a target content offset after a reload has taken place.
Currently I'm using the targetContentOffsetForProposedContentOffset
of the UICollectionViewLayout
for setting the stopping position of the UICollectionView
. But that doesn't work correctly. The target content offset is calculated before the reload, then the reload takes place, and the scroll view scrolls further. Therefore the target content offset is wrong. Perhaps one can force the scroll view stop scrolling so that I can freely set the content offset?
How do you set the target content offset when a reload of the UICollectionView
takes place?