从 UILongPressGestureRecognizer 获取屏幕坐标
我正在尝试在 iOS 应用程序中实现 UILongPressGestureRecognizer。它按预期触发,但我没有看到将屏幕坐标传递给我的目标方法。有谁知道该怎么做?
I am trying to implement a UILongPressGestureRecognizer in an iOS app. It fires as expected, but I don't see anyway of passing screen coordinates to my target method. Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是一个动作:
我仍然不太明白(似乎最后一个触摸点存储在gestureRecognizer中,在这种情况下我希望只有一个属性或其他东西)。但是,嘿,它有效。
This seems to work as an action:
I still don't really understand (it seems like the last touch point is stored in the gestureRecognizer, in which case I would expect there to just be a property or something). But hey, it works.