在我的iOS應用程序中,我有一個tabBarController與幾個navigationControllers。在applicationDidFinishLaunching tabBarController.selectedViewController
是null
。這是我將navigationControllers分配給tabBar的tabBarItems後。tabBarController.selectedViewController的默認值?
什麼是tabBarController.selectedViewController
的適當默認值?
也許它可以設置爲第一個navigationController。可能需要小心從後臺啓動應用程序(在這種情況下用戶可能沒有在第一個navigationController中停止)。