This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // NOTE: This delegate method requires you to disable UICollectionView's `pagingEnabled` property. | |
| - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView | |
| withVelocity:(CGPoint)velocity | |
| targetContentOffset:(inout CGPoint *)targetContentOffset { | |
| CGPoint point = *targetContentOffset; | |
| UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)self.collectionView.collectionViewLayout; | |
| // This assumes that the values of `layout.sectionInset.left` and |
NewerOlder