UICollectionView完全展示被遮挡的Cell

1,获取要展示item的frame

2,调用展示方法

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

[collectionView scrollRectToVisible:itemFrame animated:YES];

posted @ 2020-09-24 11:15  怀达  阅读(760)  评论(0编辑  收藏  举报