Every time I click a picture I call this method (which pushes a view on the detail view):
-(IBAction) loadTeamView:(id)sender {
teamView = [[TeamViewController alloc] initWithNibName:@"TeamViewController" bundle:nil detailItem:self.detailItem];
[self.navigationController pushViewController:teamView animated:YES];
}
It works but if you click the back button (which automatically comes up) and then come back to this method no back button shows up. Any ideas?
Make sure you are not changing the content of the
navigationItemproperty of the view controller. As per the documentation, the navigation controller follows the following rules for the left-hand side navigation bar button:http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html