brainray
brainray

Reputation: 12884

TabBar: first to be shown ViewController after application launch

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

Answers (1)

Bourne
Bourne

Reputation: 10312

Can't you use [controller setSelectedIndex:] ?

In your case it is:

[tabBarController setSelectedIndex:1]

Upvotes: 2

Related Questions