I've been trying various methods to trigger some code when returning to the first level of a UINavigationController, but none of the below work...
// HomeViewController.m
-(void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
NSLog(@"trigger 1");
}
- (void)viewWillAppear:(BOOL)animated {
NSLog(@"trigger 2");
}
-(void) viewDidAppear:(BOOL)animated {
NSLog(@"trigger 3");
}
I'm starting to think I've set up my app wrong.. is it something about having UIViewControllers within UIViewControllers?
This is the nib for the app.. it's a UITabBarController with a navigation controller for each tab, and within that the first page of the UINavigationController. Is this setup the reason why the methods are not triggering?
Not shown in this is a UIView at the bottom which is linked to the File Owner's view. And to make it more complicated, MainViewController is actually the flip side of a Utility-style app.