IOS gesture not detected due to accessibility settings

The application I'm developing requires three-point gestures.

I have successfully implemented this with UIGestureRecognizer , and it works fine for the most part.

However, if you switch the Zoom Zoom setting to the device (Settings> General> Accessibility> Zoom), it stops gesture recognition.

The zoom function uses various three-point gestures to work, so I can understand that this replaces my application gesture.

However, does anyone know how I can determine if the zoom option is enabled (or by the zoom accessibility gesture) so that I can at least advise the user that the gesture will not be recognized?

Thanks!

+8
ios objective-c iphone
source share
3 answers

If you're targeting iOS 5, check out the UIAccessibilityRegisterGestureConflictWithZoom() . Although it does not tell you if Zoom is enabled, it will let your users know when there is a conflict.

+2
source share

I would use the if statement to check if access is allowed for the user, and if so, make your application swipe four fingers.

 if (isAccessabilityElement) 

? have you tried this?

0
source share

It is possible to find out if the scale is set or not set in the UIScrollView delegate methods, but you can try using the UIPinchGestureREcognizer in addition to gesture recognition. For more information, see the Apple developer documentation.

0
source share

All Articles