Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable 4 finger gestures on iPad?

Tags:

ios

ipad

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, however, and want to remove this gesture within the frame of the keyboard. The keyboard does not use the gesture, but it regularly disrupts input (for example, when there is multi-touch input).

like image 264
obsoleteModel81 Avatar asked Apr 03 '11 01:04

obsoleteModel81


1 Answers

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.

like image 126
bobobobo Avatar answered Oct 29 '22 00:10

bobobobo