Disable iOS gesture recognizer

I am developing a gesture recognition application for iPad and I want to disable the default gesture recognizer for iOS. When I ask how to turn off the gesture recognizer, I use my own application, so I need to use some api functions and not use the configuration method.

+1
source share
5 answers

Four-finger and five-finger gestures are not officially part of iOS and can never be.

Although it would be better to figure out an alternative, you should now use these gestures rather than conflict conflicts (with the exception of iPad developers who specifically turned on this feature, users of which know that these functions may conflict with applications.)

+1
source

I do not quite understand your question.

You can add UIGestureRecognizer to objects. You can also delete them.

- (void)removeTarget:(id)target action:(SEL)action 

For instance:

  [imageView addGestureRecognizer:singleTap]; [imageView removeGestureRecognizer:singleTap]; 
+4
source

One option is to change the design to avoid 4-5 fingers. From what I know, setting up 4-5 gestures is intended for end users to return to the home screen / open the multitask bar, and you can do nothing about it until Apple releases it for the developer, now it is still located at the experiment stage for end users.

0
source

You can use UITapGesture and set the number of touches in the Attributes Inspector if you want several touches. Doesn't that do what you want?

0
source

when you switch to gestures in the secondary touch menu to turn it off, you swipe right on the screen, as if you had deleted a song or note.

0
source

Source: https://habr.com/ru/post/910614/


All Articles