UICollectionView完全展示被遮挡的Cell

1,获取要展示item的frame

2,调用展示方法

CGRect itemFrame = [collectionView layoutAttributesForItemAtIndexPath:indexPath].frame;

[collectionView scrollRectToVisible:itemFrame animated:YES];

原文地址:https://www.cnblogs.com/huaida/p/13723165.html