hi, i'm making an application of tab bars...having 5 tabbars.i.e. home,ask,tip,inbox,disclaimer..now the problem is that i want the control to directly shift to disclaimer tab after the launch of application ..right now control shifts to home tab..which is the 1st tab
+1
A:
Tab bar controller has a property called selectedViewController
, set it's value to your disclaimer view controller instance like this:
myGlobalTabBarController.selectedViewController = myDisclaimerViewController;
totocaster
2009-07-31 09:49:15
+5
A:
You can use:
[tabBarController setSelectedIndex:(int)];
The numbering of tabs starts at 0. This will take you straight to the tab that you want.
The other way of handling this would be to have a modal view that displays the disclaimer on top of everything at startup.
James Raybould
2009-07-31 09:49:16