swipe to delete in a UITableView which is embeded in a UIScrollView

后端 未结 5 1546
猫巷女王i
猫巷女王i 2020-12-17 04:04

I\'ve encountered a problem the same as UIScrollview enable delete row by swipe
It is a tableView and another view work as subViews of a scrollView , and I can\'t enab

5条回答
  •  旧时难觅i
    2020-12-17 04:47

    I've successfully used

    - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
    

    in a UIScrollView subclass containing the tableview to enable a UISwipeGestureRecognizer residing in the tableview to trigger instead of being swallowed by the "main" scrollview's gesture recognizers.

提交回复
热议问题