title: Programmatically initialize navigation controller stack
body: <p>This is the code for the button press:</p>
  
  <pre><code>- (IBAction)newPoint:(id)sender {
      [self.tabBarController setSelectedIndex:1];
  
      UIViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"navid"];
      UIViewController *tblvc = [self.storyboard instantiateViewControllerWithIdentifier:@"tblid"];
  
      UINavigationController *nvc1 = self.tabBarController.viewControllers[1];
      [nvc1 pushViewController:tblvc animated:NO];
      [nvc1 pushViewController:vc animated:NO];
  }
  </code></pre>
  
  <p>This is my storyboard
  <img src="https://i.stack.imgur.com/UzTtZ.png" alt="enter image description here"></p>
  
  <p>This is exception I got:</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'
  </code></pre>
  
  <p>What I'm trying to achieve is to show the rightmost view controller(in storyboard) when tapping on button. Then I want the back button of navigation controller to take to root view controller, just as I would reach that controller manually.</p>
  
  <p>For that I change to the second tab(because button is on first tab), then I try to initialize Navigation controller. But there is something I probably missing...</p>