MulletDevil MulletDevil - 1 year ago 160
Objective-C Question

Reset scroll on UICollectionView

I have a horizontal

which works fine and scrolls. When I tap an item I update my data and call
. This works and the new data is displayed in the
The problem is the scroll position doesn't change and it is still viewing the last place. I want to reset the scrolling to the top (Or left in my case). How can I do this?

Answer Source

You can use this method to scroll to any item you want:

- (void)scrollToItemAtIndexPath:(NSIndexPath *)indexPath 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download