(IOS)获取collectionViewCell在屏幕中的frame

UICollectionViewLayoutAttributes*attributes = [collectionView layoutAttributesForItemAtIndexPath:indexPath];

CGRectcellRect = attributes.frame;

CGRectcellFrameInSuperview = [collectionView convertRect:cellRect toView:[cv superview]];

你可能感兴趣的:((IOS)获取collectionViewCell在屏幕中的frame)