indexPath只要不为0就是
CGPoint tapPoint = [gesture locationInView: _collectionView];
NSIndexPath *indexPath = [_collectionView indexPathForItemAtPoint: tapPoint];
判断点击点是不是在UICollectionView中的cell上
最新推荐文章于 2021-10-22 15:31:49 发布

indexPath只要不为0就是
CGPoint tapPoint = [gesture locationInView: _collectionView];
NSIndexPath *indexPath = [_collectionView indexPathForItemAtPoint: tapPoint];