0
當我從moreNavigationController加載視圖時,需要重繪UINavigation Bar。我怎樣才能檢測到一個視圖已被tabBarController.moreNavigationController加載?如何檢測TabBarController.moreNavigationController中是否加載了View?
當我從moreNavigationController加載視圖時,需要重繪UINavigation Bar。我怎樣才能檢測到一個視圖已被tabBarController.moreNavigationController加載?如何檢測TabBarController.moreNavigationController中是否加載了View?
負責該視圖的視圖控制器將獲得viewDidLoad
回調。如果你想知道當導航推/彈出視圖控制器,你可以設置一個委託到導航控制器和實現以下方法
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
不,我只想已加載按一個視圖之間的差異標籤欄按鈕項目和通過選擇標籤欄控制器更多列表中的元素加載的視圖。 – Jimmy