Mixing Multi Touch and Tab bar

I am trying to build a tab app, each tab is a different page. One of the tabs is a map and I want to do pinch zooming.

When I turn on Multi touch (system.activate(multitouch) the tab bar stops functioning. Even if that is the only line I add to my code.

It may be that I don’t understand multi-touch. Can you point me to a good tutorial that explains the concepts of multitouch from the beginning? I saw the multitouch button example it appears to work. I wonder why the tab bar breaks.

[import]uid: 39480 topic_id: 17619 reply_id: 317619[/import]

If you create a tabBarController class and then have modules or classes for each tab then multitouch should work if you instantiate it in the modules. I didn’t get any issues that way. [import]uid: 13560 topic_id: 17619 reply_id: 67062[/import]

We are actually using the tab bar and director. We load the tab bar in our main.lua and then have a content view that director controls. On the content view for the map we load multi touch.

Once we do, every button on the tab bar stops working except for the current tab we are on. When I say stops working I mean the buttons don’t even respond or show their pressed states. [import]uid: 39480 topic_id: 17619 reply_id: 67536[/import]

Then you init the multitouch in the main.lua too?

If you drop the director and create a tabBarController class, then have a class for each tab in which you init multitouch then what you are trying to do will work.

Then you dynamically require the classes in the tabBarControllers onPress functions and in main.lua you would just need to require the tabBarController.

Simple and clutter free code. [import]uid: 13560 topic_id: 17619 reply_id: 67576[/import]