title: Programmatically build / navigate a Navigation Controller
body: <p>Before:</p>
  
  <p>My App is based on indepent view controllers. I can switch from one to another by replacing the root view controller on the application delegate: </p>
  
  <pre><code>ade.window.rootViewController = newController;
  </code></pre>
  
  <p>... and all worked right, till now.</p>
  
  <p>Tomorrow:</p>
  
  <p>we have to add a NavigationController-based part of our App, which will help the users navigate through our:</p>
  
  <p>Brands => Model Names => Colors</p>
  
  <p>So, the user will choose a color, then click a button: now I will switch to another UIViewController (call it "pippo"), which actually resides outside that navigation hierarchy (I can't push it in the nav-controller for several methods, I'm forced doing so!).</p>
  
  <p>What I want is to get back to my "Color" screen, from "pippo". So, I'm looking for a way to programmatically "navigate" the navigation controller I restore, I mean:</p>
  
  <ul>
  <li><p>I restore my navigation controller</p></li>
  <li><p>now I'm on Brands, but I don't want my users to be here, I want to show them the last color they was on (I saved it in the preferences)</p></li>
  <li><p>how can I simulate the selection of a known brand and model?</p></li>
  </ul>
  
  <p>Thanks a lot.</p>