I added
-(void) viewDidAppear:(BOOL)animated
{
NSLog(@"view did appear");
}
to one of my viewcontrollers. Actually they all have them.
When I return from sub viewcontroller ‘C’ to partent viewcontroller ‘B’ I would expect to see the viewDidAppear to be called in ‘B’.
But it does not get called. It does not get called even in viewcontroller ‘A’ which is the parent of ‘B’.
Is there something I can do to get this working?
The design is a TABBAR controller which has a NAVBAR controller embedded in it.
Many Thanks,
-Code
You will have to write an explicit call to viewDidAppear when you first set-up your tabBarController. For example:
You just have to write it while setting up the tabBar and the delegate method would be called as expected, then onwards.