TableViewCell is not clickable with one finger tap, but it is with two fingers

后端 未结 3 1675
小鲜肉
小鲜肉 2021-01-20 19:24

I created a table view and the tableViewCell is not clickable with one finger, but when I try to click the tableViewCell with two fingers the click event takes place. I don\

3条回答
  •  天涯浪人
    2021-01-20 19:52

    The Tap gesture you have added in the code is causing the issue. Tapgesture recogniser is listening to the user tap actions in the view. The cell select listner is being blocked by the added Tap gesture.

    As @Fahim said, if you remove the tap gesture from your code, then cell selection will work smoothly.

提交回复
热议问题