简体   繁体   中英

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.

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.

How can I programmatically disable this recognizer when the user enters on my application?

There is no API for that.
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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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