Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Gesture not detected due to accessibility settings

An app I am developing requires a three-point swipe gesture.

I have successfully implemented this using a UIGestureRecognizer and it works fine for the most part.

However, if you switch the device Zoom accessibility setting on (Settings > General > Accessibility > Zoom) this stops the gesture from being recognized.

The Zoom function uses various three-point gestures to operate, so I can understand this superseding my app gesture.

However, does anyone know how I can determine if the Zoom setting is turned on (or the zoom accessibility gesture performed) so I can at least advise the user that the gesture will not be recognized?

Thanks!

like image 491
Ian L Avatar asked Jul 05 '11 13:07

Ian L


1 Answers

If you're targeting iOS 5, take a look at UIAccessibilityRegisterGestureConflictWithZoom(). While it doesn't tell you if Zoom is enabled, it will let your users know when there's a conflict.

like image 120
MyztikJenz Avatar answered Oct 12 '22 23:10

MyztikJenz