在iOS14.2系統(tǒng)下恃疯,UICollectionview會(huì)自動(dòng)觸發(fā)下面的方法:
-(BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath;
解決方案:
蘋果暫未給出方案漏设,蘋果官方問題
我們的做法是,將shouldSelectItemAtIndexPath方法收攏到didSelectItemAtIndexPath:
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;