简体   繁体   English

在游戏过程中禁用iOS多任务手势识别器

[英]Disabling iOS multitask gesture recognizer during game play

I am developing a game where the user could draw using up to 5 fingers, 1 finger for each line. 我正在开发一个游戏,用户可以使用最多5个手指,每条线1个手指进行绘制。

When multitask gesture is enabled and the user try to draw using more than 4 fingers from right to left, the gesture recognizer from iOS on iPad switch to another application. 当启用多任务手势并且用户尝试从右到左使用4个以上的手指进行绘制时,iPad上的iOS手势识别器会切换到另一个应用程序。

How can I programmatically disable this recognizer when the user enters on my application? 当用户进入我的应用程序时,如何以编程方式禁用此识别器?

There is no API for that. 没有API。
There might be a way to consume the gesture, so it is not forwarded to the system, but I think the order of the messaging chain is in the other way. 可能有一种方法来使用手势,因此它不会转发到系统,但我认为消息链的顺序是另一种方式。

You can only ask your users to disable the Multitasking Gestures in the System Preferences, under the General section. 您只能要求用户在“ 常规”部分的“系统偏好设置”中禁用“ 多任务手势 ”。 Not really great, I know. 我知道,不是很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM