覆盖/取消iPad应用程序切换手势

发布于 2024-12-20 17:47:19 字数 71 浏览 3 评论 0原文

我想在应用程序中跟踪四指触摸,但由于 iPad 使用四指滑动来切换应用程序,因此它们被取消了。 有没有办法取消/覆盖这个手势?

I want to track four finger touches in my application, but they are cancelled as the iPad uses the four finger swipe to switch applications.
Is there a way to cancel / override this gesture?

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

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

发布评论

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

评论(3

瀞厅☆埖开 2024-12-27 17:47:19

我在我开发的一款游戏中对此进行了研究,但找不到覆盖它的方法。即使您找到了一种方法,也可能会被应用商店拒绝,因为似乎没有任何公共 API。

I looked into this for a game I worked on and I could not find a way to override it. Even if you found a way, it would probably get you rejected from the app store, since there doesn't seem to be any public API for it.

携余温的黄昏 2024-12-27 17:47:19

这就是我的答案。我不确定你会如何实际执行下面的代码,因为我猜实现的做法有所不同,但通常听起来是有可能的,因为毕竟这些是苹果关于多任务手势的说法:

“鼓励开发人员评估任何现有的交互
它们在潜在干扰源方面的应用。为了
与多任务手势正确互操作,应用程序必须
正确处理以下方法和通知:
TouchsCancelled:withEvent:(UIResponder)cancelTrackingWithEvent:
(UIControl) applicationDidBecomeActive: 和
applicationWillResignActive:(应用程序委托)
UIApplicationDidBecomeActiveNotification 和
UIApplicationWillResignActiveNotification 通知 这些可以是
启用通过 Xcode 进行开发,以便您可以将应用程序更新为
与这些新手势进行互操作。测试它们并向我们提供您的
Apple 开发者论坛中的反馈。”

This be my answer. I'm not sure how you'd go about to actually execute the below as I guess implementions do things differently, but generally it sounds as there is a possibility, because after all these are the words of Apple regarding the multitasking gestures:

"Developers are encouraged to evaluate any existing interactions in
their applications for potential sources of interference. In order to
properly interoperate with multitasking gestures, applications must
properly handle the following methods and notifications:
touchesCancelled:withEvent: (UIResponder) cancelTrackingWithEvent:
(UIControl) applicationDidBecomeActive: and
applicationWillResignActive: (application delegate)
UIApplicationDidBecomeActiveNotification and
UIApplicationWillResignActiveNotification notifications These can be
enabled for development via Xcode so you can update your apps to
interoperate with these new gestures. Test them and give us your
feedback in the Apple Developer Forums."

空城缀染半城烟沙 2024-12-27 17:47:19

我真的不认为你可以,因为我看过无数关于如何在 iPhone/iPod 上覆盖的视频,但肯定没有适用于 iPad 的视频,所以你不能在游戏中作弊!

I really don't think you can because I have watched countless videos on how to override on iPhone/iPod but there are no ones for iPad must be so you can't cheat on games!

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