简体   繁体   中英

Disable gesture recognizer iOS

i'm developing a application for gestures recognizer for iPad and i want to disable the default gesture recognizer of the iOS. When i ask a way do disable the gestures recognizer is using my own application, so i need a way using some functions of the api and not using the settings way.

I don't completely understand your question.

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

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

For example:

  [imageView addGestureRecognizer:singleTap];
  [imageView removeGestureRecognizer:singleTap];

The four- and five- finger gestures are not officially part of iOS, and may never be.

Though it would be best to figure out an alternative, you should be able to use these gestures for now and not fear conflicts (save on the iPads of developers who have specifically turned on this feature, whose users know that said features may conflict with apps.)

当您进入辅助触摸菜单中的手势时,要禁用该功能,请向右滑动,就像删除歌曲或音符一样。

One alterative is to change your design to avoid 4-5 finger swipe. From what i know, the 4-5 gesture setting is for end-users to return home screen/open up multitasking bar and you can't do anything about it till Apple releases it for developer, right now it's still on the stage of experimenting for end users.

You can use a UITapGesture and set the number of touches in the Attribute Inspector if you want multiple touches. Doesn't this do what you want?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM