获取cell 在collection view 中的位置

1  //求得出点击的cell在当前View的位置
2 UICollectionViewLayoutAttributes *attributes = [collectionView layoutAttributesForItemAtIndexPath:indexPath];
3 
4 CGPoint cellCenter = attributes.center;
5 CGPoint anchorPoint = [collectionView convertPoint:cellCenter toView:self.view];
相关文章
相关标签/搜索