mardi 5 mai 2015

iOS collectionView: how to scroll a cell to the top of the screen

I am wondering if there is a way to scroll a certain UICollectionViewCell to the top of the view? I tried the collectionView.scrollToItemAtIndexPath() method, but instead of scrolling the cell to the top of the view, it scroll the cell to the center of the view.

Aucun commentaire:

Enregistrer un commentaire