【问题标题】:Does a UIPanGestureRecognizer take precedence over the -touchesMoved: method?UIPanGestureRecognizer 是否优先于 -touchesMoved: 方法?
【发布时间】:2010-08-20 16:23:06
【问题描述】:

对此我不确定,但是当 UIView 的触摸处理方法添加到该视图时,它是否优先于 UIView 的触摸处理方法?也就是说,我是否仍会收到来自该视图的 -touchesMoved: 方法调用,还是只会从手势识别器获得回​​调?

【问题讨论】:

    标签: iphone uigesturerecognizer


    【解决方案1】:

    我相信它优先于处理回调的触摸。如果你实现了它,它会在将它交给UIPanGestureRecognizer 之前调用touhesCancelled

    【讨论】:

      猜你喜欢
      • 2014-10-23
      • 2014-02-23
      • 1970-01-01
      • 2021-12-28
      • 2018-11-20
      • 2017-05-21
      • 2011-08-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多