Skip to content

Instantly share code, notes, and snippets.

@MengTo
Last active December 30, 2015 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MengTo/7887165 to your computer and use it in GitHub Desktop.
Save MengTo/7887165 to your computer and use it in GitHub Desktop.
Scrolls to the cell of your CollectionViewController
- (void)viewDidAppear:(BOOL)animated {
[self.collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForRow:self.indexInt inSection:0]
atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally
animated:YES];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment