在我的iOS应用程序中,我有一个tabBarController与几个navigationControllers。在applicationDidFinishLaunching tabBarController.selectedViewController
是null
。这是我将navigationControllers分配给tabBar的tabBarItems后。tabBarController.selectedViewController的默认值?
什么是tabBarController.selectedViewController
的适当默认值?
也许它可以设置为第一个navigationController。可能需要小心从后台启动应用程序(在这种情况下用户可能没有在第一个navigationController中停止)。