UICollectionViewCell with UIScrollView cancels didSelectItemAtIndexPath

后端 未结 4 1113
野的像风
野的像风 2020-12-14 18:47

I have a UICollectionView that horizontally scrolls to show one UICollectionViewCell at a time. Each UICollectionViewCell the has a ve

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 19:41

    The tap on the UIScrollView is used to see whether scrolling should be done.

    You should catch the single tap on the UIScrollView itself and pass it on to the surrounding UICollectionViewCell.

提交回复
热议问题