How to make the startup screen a second tab
I created a tab bar application with 3 tabs.
When I launch the application, the first tab is shown to me first.
But I want to make the second tab as the launcher screen. The order of the tabs will remain the same. when i open the app it should show the middle tab.
+3
umakanta
source
to share
2 answers
This will allow you to select the default tab at startup
[self.tabBarController setSelectedIndex:1];
+3
Dushyant singh
source
to share
The tab controller has a property that selects a specific tab: selectedIndex.
Using: [self.tabBarController setSelectedIndex:1];
Note. The index for the various tabs starts at 0, that is, the first tab has index 0, the second tab has index 2, and so on.
Please mark the correct answer if it helps :)
0
iNeo
source
to share