In my iOS app I have a tabBarController with a few navigationControllers. In applicationDidFinishLaunching tabBarController.selectedViewController is null. This is after I assign the navigationControllers to the tabBar’s tabBarItems.
What is an appropriate default value for tabBarController.selectedViewController?
Perhaps it can be set to the first navigationController. Might need to be careful of the app launching from the background (in which case the user might not have left off at the first navigationController).
From the documentation for UITabBarController, under
selectedViewController: