detecting when nav controller popped to root
- by phil swenson
Here is my code:
SignupController* signupController = [[SignupController alloc] initWithNibName:@"SignupController" bundle:nil];
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
self.navigationController.title = @"MyNavController";
[self.navigationController pushViewController:signupController animated:YES];
[signupController release];
Unfortunately for me calling pushViewController is not synchronous, so the next line ([signupController release]) is executed immediately.
I need to detect hen the signupController has popped back to the root so I can take the data from the signup controller and do a registration or login.
Any ideas?
Thanks