title: Return to the first index of UINavigationController?
body: <p>I'm doing an application which uses a UINavigationController and I'm switching to other UIViewControllers as follows:</p>
  
  <pre><code>if(self.myViewController == nil){
      MyViewController *aViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
      self.myViewController = aViewController;
      [aViewController release];
  }
  
  AppDelegate *delegate = [[UIApplication sharedApplication] delegate];
  [delegate.myNavController pushViewController:myViewController animated:YES];
  </code></pre>
  
  <p>I imagine this is creating a pile of UIViewControllers into the UINavigationController, maybe an array of indexs? I would like to know how to turn back without having to be back one by one.</p>
  
  <p>For example, I'm sailing through a few screens and with a button I would like to return at the first index of navigation. I would also like know how to modify indexes, view, erase and anything pertaining to this issue.</p>
  
  <p>Sorry if I have not explained well.</p>