UICollectionView *ta = (UICollectionView *)scrollView;
NSArray *Vells = [ta visibleCells];
NSIndexPath *dex = [ta indexPathForCell:Vells[0]];
table 同上
UICollectionView *ta = (UICollectionView *)scrollView;
NSArray *Vells = [ta visibleCells];
NSIndexPath *dex = [ta indexPathForCell:Vells[0]];
table 同上
转载于:https://www.cnblogs.com/yangxiaolong/p/5302989.html