UICollectionView完全展示被遮挡的Cell
1,获取要展示item的frame
2,调用展示方法
CGRect itemFrame = [collectionView layoutAttributesForItemAtIndexPath:indexPath].frame;
[collectionView scrollRectToVisible:itemFrame animated:YES];
1,获取要展示item的frame
2,调用展示方法
CGRect itemFrame = [collectionView layoutAttributesForItemAtIndexPath:indexPath].frame;
[collectionView scrollRectToVisible:itemFrame animated:YES];