UICollectionView delegate's tap method not getting called

后端 未结 8 1580
梦毁少年i
梦毁少年i 2021-01-03 20:50

I have a collection view, the datasource delegate works well, but UICollectionViewDelegate:

-(void)collectionView:(UICollectionView *)collection         


        
相关标签:
8条回答
  • 2021-01-03 21:23

    I had a similar issue with PSUICollectionView (this works on iOS5 too) and I fixed it by putting a button on my CollectionViewCell and setting the target of that button Also add tag's to know which button is pressed.

    0 讨论(0)
  • 2021-01-03 21:25

    Looks like you've added TapGestureRecognizer somewhere and it prevents selecton of cell. Check them, that should be the problem.

    0 讨论(0)
提交回复
热议问题