UIPanGestureRecognizer 是否优先于 -touchesMoved: 方法?

发布于 2024-09-15 03:17:30 字数 136 浏览 1 评论 0原文

我不确定这一点,但是当 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぃ弥猫深巷。 2024-09-22 03:17:30

我相信它优先于处理回调的触摸。如果您已经实现了它,它会在将其提供给 UIPanGestureRecognizer 之前调用 touhesCancelled

I believe it takes precedence over the touches handling callbacks. And it calls touhesCancelled before giving it to UIPanGestureRecognizer, if you have implemented it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文