for "debug" i mean to add some breakpoint to see what happen.
However i downloaded the sample, the problem is that you are doing
Code:
RootViewController *home = [[RootViewController alloc] init];
FirstView *firstView = [[FirstView alloc] initWithNibName:@"FirstView" bundle:nil];
[home.navigationController pushViewController:firstView animated:YES];
in other words, you are allocing a new RootViewController and you say "in navigationController of this NEW viewcontroller (and not the viewcontroller that i have already allocated and added to my view), please push FirstView"
what you need is:
Code:
testAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
FirstView *firstView = [[FirstView alloc] initWithNibName:@"FirstView" bundle:nil];
[appDelegate.navigationController pushViewController:firstView animated:YES];
In this manner, you are accessing at your appDelegate with a singleton method, and then you push on his navigationcontroller your view
ps: don't miss the [firstView release]; for don't leak.