How to disable 4 finger gestures on iPad?

前端 未结 3 922
旧巷少年郎
旧巷少年郎 2020-12-03 11:32

I\'m testing an iPad on iOS 4.3, which by default uses 4 finger (up/down) gestures to switch out of apps. This interferes with an on-screen piano keyboard I\'m using, howev

相关标签:
3条回答
  • 2020-12-03 12:30

    One way to detect this is you will get 4 touchesCancelled at once in a single (NSSet *)touches event if the person accidentally did the 4 finger swipe, and 5 touchesCancelled if the person did the 5 finger grab.

    At that point you can display a dialog box in your app, telling the user how to turn off the multitasking gestures, once he switches back to the app.

    0 讨论(0)
  • 2020-12-03 12:34

    I believe you go to settings> general> Multitasking gestures and turn them off.

    0 讨论(0)
  • 2020-12-03 12:36

    No Dice

    This is currently impossible to do programmatically. The most complete thread on it is here:

    http://www.cocos2d-iphone.org/forum/topic/28704

    and the answer, if it were true, would probably be here (it's not):

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/Reference/UIDevice.html

    Other Possibilities

    The other way to go would be at least to inform the user that they have the setting "wrong." Can you detect it? It seems you cannot:

    iOS Multitasking gestures: Is there any way to check if the user has them turned on or not?

    0 讨论(0)
提交回复
热议问题