UIPanGestureRecognizer 是否优先于 -touchesMoved: 方法?
我不确定这一点,但是当 UIPanGestureRecognizer 添加到该视图时,它是否优先于 UIView 的触摸处理方法?也就是说,我是否仍会从该视图接收 -touchesMoved:
方法调用,还是仅从手势识别器获取回调?
I'm not sure about this, but does a UIPanGestureRecognizer take precedence over a UIView's touch handling methods when it is added to that view? That is, will I still receive -touchesMoved:
method calls from that view, or will I only get the callback from the gesture recognizer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信它优先于处理回调的触摸。如果您已经实现了它,它会在将其提供给
UIPanGestureRecognizer
之前调用touhesCancelled
。I believe it takes precedence over the touches handling callbacks. And it calls
touhesCancelled
before giving it toUIPanGestureRecognizer
, if you have implemented it.