获取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];
posted on 2017-04-10 17:15 Pierce-lph 阅读(486) 评论(0) 收藏 举报
浙公网安备 33010602011771号