detecting when nav controller popped to root
Posted
by phil swenson
on Stack Overflow
See other posts from Stack Overflow
or by phil swenson
Published on 2010-03-13T06:04:53Z
Indexed on
2010/03/13
6:15 UTC
Read the original article
Hit count: 189
iphone
|iphone-sdk
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
© Stack Overflow or respective owner