title: iOS Jump to different view
body: <p>I have a navigation based app. The root view is a list of items. From this root view you can tap on a table cell to an item's detail view. Or you can go to a form view to create a new item via the 'Add' button in the nav bar. </p>
  
  <p>My question is how I can jump from the form view to the detail view once the new object has been created? </p>
  
  <p>I don't want to push the detail view on top of the form view, because I want the root table view to be what the user see's after pushing the 'back' nav button form the detail view.</p>
  
  <p>I've tried the following. It pops to the root view fine, but doesn't push the detail view after that..</p>
  
  <pre><code>[context save:&amp;error];
  
  [self.navigationController popToRootViewControllerAnimated:NO];
  
  // display detail view
  GoalDetailViewController *detailViewController = [[GoalDetailViewController alloc] initWithNibName:@"GoalDetailViewController" bundle:nil];
  
  // Pass the selected object to the new view controller.
  detailViewController.goal = goal;
  
  [self.navigationController pushViewController:detailViewController animated:YES];
  [detailViewController release];
  </code></pre>
  
  <p>Any help and direction would be much appreciated :)</p>
  
  <p>Cheers!</p>