如何识别特定手势

发布于 2024-09-10 14:07:47 字数 235 浏览 3 评论 0原文

请耐心等待,因为我的问题很难解释。

是否可以识别 iPad 上的特定触摸动作或手势,然后在该动作发生时引发事件?

想象一下用户在触摸屏上写下了字母“i”。因此,这将涉及首先识别用户点击屏幕一次(针对“i”上的点),然后第二次针对字母“i”的其余部分)。

你认为这有可能吗?根据我的初学者知识,我相信如果您存储 2 个不同的集合,然后将其粗略地与某个恒定值进行比较,这是可能的。

有什么想法吗?

Please bear with me because my query is difficult to explain.

Is it possible to recognise a specific touch action or gesture on the iPad and then raise an event when this action occurs?

Imagine the user wrote the letter 'i' on the touch screen. So that would involve first recognising that the user tapped the screen once (for the dot on the 'i') and then a second time for the rest of the letter 'i').

Do you think this is at all possible? From my beginner knowledge I believe it is possible if you store 2 different sets and then compare it roughly to some constant value.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

最佳男配角 2024-09-17 14:07:47

您应该看一下 UIGestureRecognizer

You should take a look at UIGestureRecognizer.

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