Detect horizontal panning in UITableView

前端 未结 5 2098
日久生厌
日久生厌 2021-01-31 16:42

I\'m using a UIPanGestureRecognizer to recognize horizontal sliding in a UITableView (on a cell to be precise, though it is added to the table itself). However, this gesture rec

5条回答
  •  一向
    一向 (楼主)
    2021-01-31 17:18

    Maybe you can use the UISwipeGestureRecognizer instead? You can tell it to ignore up/down swipes via the direction property.

提交回复
热议问题