UIPanGestureRecognizer on UITableViewCell overrides UITableView's scroll view gesture recognizer

后端 未结 4 1555
终归单人心
终归单人心 2020-12-31 02:26

I\'ve subclassed UITableViewCell and in that class I apply a Pan gesture recogniser:

UIPanGestureRecognizer *panning = [[UIPanGestureRecognizer          


        
4条回答
  •  别那么骄傲
    2020-12-31 02:55

    Subclass the panning gesture recognizer and make it recognize only horizontal panning. There is a great WWDC 2010 video on the issue of custom gesture recognizers available. Actually there are two on that subject, check them out at https://developer.apple.com/videos/archive/:

    • Simplifying Touch Event Handling with Gesture Recognizers
    • Advanced Gesture Recognition

提交回复
热议问题