I have a Tab Controller with 4 tabs. I'm deep in one of my tabs (lets say tab number 1) and I want to jump to tab number 3 just as if I would have clicked the tab item. Does anyone know how to do this?
self. tabBarController.selectedIndex = 3 and it worked.
Now, the follow on question, I have a view and a textfield in that view and I need to update the textfield. How can I access that view?
------
Hi. I'm a newBie to iPhone development
When a tabBarItem is clicked i change my view but the tabBar focus remain on same item..Also when i click the same tabBarItem I want to load the view corresponding view.
how can i achieve this????
Any help appreciated....
If possible let me know the code.
Hi. I'm working on a similar issue / problem for my app. Perhaps we can help eachother out.
I have 4 tabs, 1 of which is for Account settings. The app requires an account on a webservice for certain actions, but not everything... I want to force the user over to the Account tab when they try to go to a tab that requires an account and they haven't set one up or the account couldn't be validated.
I'm testing by just setting a BOOL logged_in = NO and if (!logged_in) { self.tabBarController.selectedIndex = 3; } in tab 2's viewController since this one with require an account.. The first time I click on tab 2, it switches tabs, but when i click on it again, I can see the tab has loaded...