将 touchEvent 发送到 backView 以便在 tableView 中滚动时出现问题
我的问题是我有一个 ScrollView,而后面我有 TableView 的其他视图。 我拦截 ScrollView 中的触摸并发送 touchBegan、touchMoved、touchEnded 和 touchCancel
[tableView TouchsXXXXXX:motion withEvent:event]; (XXXX 是开始,移动,...)
这些用于检测触摸,我可以选择后面的 tableView 中的行,但我的问题是无法在后面的 tableView 中滚动。如何发送触摸事件以在 tableView 上滚动?因为将 touchMoved 事件发送到 tableView 不会进行滚动。
感谢您的帮助!
My problem is that I have a ScrollView and back I have other view with TableView.
I intercept the touch in the ScrollView and send the touchBegan, touchMoved, touchEnded and touchCancel
[tableView touchesXXXXXX:motion withEvent:event]; (XXXX is Began, Moved, ...)
These work for detect touchs, and I can select the row in the back tableView, but my problem is that can't make scroll in back tableView. How I can send the touch event for make scroll on tableView? Because sending the touchMoved event to tableView don't make scroll.
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 UISCrollView 文档
From UISCrollView docs