如何在tabBarController.moreNavigationController中检测到View已加载?

时间:2011-10-20 08:43:06

标签: iphone objective-c ios

当我从moreNavigationController加载View时,我需要重绘UINavigation Bar。我怎样才能检测到tabBarController.moreNavigationController加载了一个视图?

1 个答案:

答案 0 :(得分:0)

负责视图的视图控制器将获得viewDidLoad回调。如果您想知道导航推送/弹出视图控制器的时间,您可以设置导航控制器的委托并实现以下方法

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated