我有一个UICollectionView,大小和屏幕差不多.它显示的UICollectionViewCells与collectionView的大小相同.每个单元格都有一个UIImage,它是单元格的大小.CollectionView启用了分页功能,因此本质上是一个全屏照片幻灯片,用户可以在其中滑动.
The problem is that
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
is only being called if the user taps with two fingers on a cell or long presses with one finger and then releases. It does not seem to have the default behaviour of single tap selection. I have not made any changes to the CollectionView gesture recognizer so am having trouble finding a solution to this problem.