Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Close and open tab group again on iOS 3.x


I writing an app with a Home page and 4 sub sections which can be navigated by tapping buttons on the Home page. When I'm in the sub sections, I can navigate to different sections by the 4 tabs of a tab group.

tabGroup.open({transition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});

I need to go back to the Home page, so in each section, I created a "Home" button and it will close the tabGroup and it display the Home page again.

var win = Titanium.UI.currentWindow;

As I expected, when I tap on the buttons on the home page again, the app should go to the section I want to go. There are 2 issues I'm facing with this

  1. It opens the correct section perfectly on the first time. I tap section 1, it opens section 1; I tap section 2, it opens section 2. However, this is not the case after I tap on the "Home" button on the section. I occasionally ignores the setActiveTab() function and opens section 1 no matter which button I click.

  2. On devices running iOS 3.x, after closing the tabGroup and click the buttons on the Home page again, the tabGroup disappeared. I can't navigate to different sections. This only occurs on iOS 3.x, both on iPhone Simulator and running on a device.

I have tried compiling this app with 1.3.2, 1.4.1 and but all give me the save result. I have scratched my head for a week and couldn't find any solution to the above 2 issues. May anyone has a solution?

Thank you!

— asked October 18th 2010 by Kwun Yeung
  • close
  • ios3
  • iphone
  • mobile
  • open
  • tabgroup

1 Answer

  • Kwun

    Please be aware of the ticket I mentioned in this post when dealing with tabgroups.

    — answered November 10th 2010 by Paul Dowsett
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.