-(IBAction) btnReturn:(id) sender{
firstView * firstview =[[firstView alloc]initWithNibName:@"firstView" bundle:nil];
[self.view pushViewController:firstview animated:NO];
}
with the previsly code I see the first view but the navigation control increment. I wold came bak as was the navigation starting point. Any help?
pushViewController:animated:will add to the navigation stack; you wantpopViewControllerAnimated:to go back one view in the stack.If you want to return to the very first (root) view controller, you want
popToRootViewControllerAnimated:.See: https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html