Reputation: 12884
I have a TabBar with 3 ViewControllers. By default the first one is selected after the app starts. How can I make the second one is selected by default, of course without changing the order of the Tabs in the Bar.
Many thanks in advance!
Upvotes: 0
Views: 146
Reputation: 10312
Can't you use [controller setSelectedIndex:] ?
In your case it is:
[tabBarController setSelectedIndex:1]
Upvotes: 2