//根据collectionView滑动距离计算出index
CGPoint p = CGPointMake(scrollView.contentOffset.x + CGRectGetWidth(scrollView.frame) / 2.0, CGRectGetHeight(scrollView.frame) / 2.0);
NSIndexPath *indexPath = [self.colloectView indexPathForItemAtPoint:p];
网友评论