Can anyone please tell me how to set the default tab when using storyboards in iOS. I can\'t seem to figure out how to accomplish this.
Thank you
The following code worked for me:
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController; tabBarController.selectedIndex = 2;