Search code examples
iostitaniumappceleratortitanium-mobileappcelerator-mobile

Prevent TabGroup doubletap event from triggering in Appcelerator


For an iPad Application developed using Appcelerator Titanium SDK 3.1.2, I have a Ti.UI.Tab Group which contains 5 Ti.UI.Tabs. Each Tab contains a Root Ti.UI.Window and certain tabs open additional windows when relevant.

When you double tap any of the Tabs in the Tab Group, the Tab double tapped will reset its content to the Root Window, automatically closing windows inside it that were open.

I want to disable this from happening, but there is no property for either the Tab Group or the Tab itself that allows me to prevent the double tap from occurring.


Solution

  • I encountered a similar problem before.

    End up I compose my own tab bar to do the tab switching. So that whenever a tab button is clicked, I can get the tab event and do the checking.

    Hope it helps.