title: Add NavigationController to current view
body: <p>I'm using a UIScrollView to display some images, and i need to present or push another view when the user selects one part of the image.This ScrollView is created only programmatically.
  How i can programmatically add a navigationController to it and present another view?</p>
  
  <p>I tried this way but just give me the following error : </p>
  
  <blockquote>
    <p>Pushing a navigation controller is not supported'</p>
  </blockquote>
  
  <pre><code> StatesViewController * controller = [[StatesViewController alloc]initWithNibName:@"StatesViewController" bundle:nil];
  
      UINavigationController * Navcontroller = [[UINavigationController alloc] initWithRootViewController:controller];
  
      [self presentModalViewController: Navcontroller animated: YES];
  </code></pre>