当我从moreNavigationController加载View时,我需要重绘UINavigation Bar。我怎样才能检测到tabBarController.moreNavigationController加载了一个视图?
答案 0 :(得分:0)
负责视图的视图控制器将获得viewDidLoad
回调。如果您想知道导航推送/弹出视图控制器的时间,您可以设置导航控制器的委托并实现以下方法
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated