调用 UIGestureRecognizers 目标 &行动
我使用 initWithTarget
构造函数以及 addTarget
、removeTarget
方法编写了 UIGestureRecognizer 的子类。
现在,我的问题是我无法找到任何访问器或辅助方法来调用这些目标操作。
我相信应该有任何目标和操作的列表/数组......
文档在这个特定问题上有些薄弱。
感谢您的帮助,
亚历克斯
I wrote a subclass of UIGestureRecognizer using the initWithTarget
constructor as well as addTarget
, removeTarget
methods.
Now, my problem is that I am unable to find any accessors or helper methods to call these targets actions.
I believe there should be any List/Array of targets and actions ...
The docs are somehow weak in that particular question.
Thanks for any help,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
超类会为你处理这个问题。您只需将
state
设置为正确的值即可:请阅读 仔细指导,包括那里的示例识别器。
The superclass handles that for you. You just need to set the
state
to the correct value:Please read the guide carefully, including the example recognizer there.