Hi,
I have an UINavigationController in Class A, from Class A I navigate to Class B and in Class B I have an UIButton that I want to take you back to Class A all inside the UINavigationController. For some reason it won't do it. I use popToRootViewController method and nothing.
Here's my code: Class A
ClassB *classB = [[ClassB alloc] initWithNibName:@"ClassB" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:classB];
self.navigationController.delegate = self;
[self.navigationController pushViewController:classB animated:YES];
[navigationController release];
Class B
ClassA *classA = [[ClassA alloc] initWithNibName:@"ClassA" bundle:nil];
[classA.navigationController popToRootViewControllerAnimated:YES];
Of course I did #import and @class for both classes.
Thanks for helpers