Ti.UI.currentNav ... is there such a method?
I am pretty new to Titanium. I am building an app where I do not want to see the tab bar at the bottom, and will be handling all navigation through buttons on screen. So, instead of using tabGroups, I decided to use navGroups.
On my main screen, I have a few buttons. Clicking a button opens a nav page containing a table view. The problem I am having is getting the table view to open another navPage. In other words, page 1 button –> page 2 (containing a tableView) –> page 3. The issue I had using navGroups was I was unable to access the navGroup to open another window.
After spending 2 days trying to get this to work, I created a test project using tabGroups instead, and just hiding the tabBar. All works fine now. I can use Ti.UI.currentTab.open() to open page 3.
My question is this: is there an equivalent to Ti.UI.currentTab, but for navGroups? And if not, should I have used tabGroups all along?
Sorry for the lengthy discussion… kinda hard to explain.
2 Answers
-
I know you have switched to tabs but to open up multiple windows with a navGroup, this is what I do
App.prototype.navGroup.open(App.prototype.detailWindow);
Just give the view the new window to open and thats it
-
I have posted a complete solution using NavigationGroups here
http://blog.clearlyinnovative.com/post/1624173028/titanium-appcelerator-quickie-navigation-groups