简体   繁体   中英

iPhone: disable multi touch for App

I want to disable multi-touch for whole app in general. Is there any property self.disableMultiTouchForAllScreens = YES ? I have a lot of screens, and I dont want to disable multi touch for each of them separately.

Suggestion by SimpleMan is good, why you bother about disabling just don' implement.

If you still want to do it by some reason, then might be you can do following- you can create a subclass of uiviewcontroller, something like MyViewController : UIViewController

In the implementation of MyViewController, you can disable multi touch. Now all other view controller of your class need to implement MyViewController instead of uiviewcontroller.

@Jim:

I don't think it is possible as it just refers to views.

Refer to this StackOverflow post:

iPhone - Disable multiple touch in whole application

Here is answer from user malinois in that post"

Looking Apple documentation, I think that is not possible because touch event delivery refers only on views : Regulating Touch Event Delivery

I am afraid that if you want to disable it. You will have to do it individually.

One Suggestion: (This is just a suggestion and may be easier to achieve)

I am not sure but may be you can subclass the controls you use in your app and make multitouch disabled by default in the subclass itself. Then you can use those classes as base classes of your controls and make it work.

Hope this helps you

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