NSInteger row = indexPath.item + 1; if (row > 0 && row < [self.dataSource collectionView:self numberOfItemsInSection:indexPath.section]) { [UIView animateWithDuration:.3 animations:^{ [self scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:row inSection:indexPath.section] atScrollPosition:UICollectionViewScrollPositionNone animated:NO]; }]; }
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: