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