title: Present a ViewController that is embedded in Navigation Controller
body: <p>I have a situation wherein a storyboard made VC(embedded in NavController) should be presented programmatically.</p>
  <p>SomeVC -&gt; presents NavController(rootVC) -&gt; rootVC -&gt; pushes subVC</p>
  <p>on this representation, subVC should have a back button to go back to rootVC, but I can't implement it this way. Will be providing sample codes that I have already tried.</p>
  <p>this pushes the rootVC directly:</p>
  <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@&quot;storyBoard&quot; bundle: nil];
  UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@&quot;rootVC&quot;];
  [self.navigationController presentViewController:vc animated:YES completion:nil];
  </code></pre>
  <p>also tried pushing the navigationController itself, ID has been set on storyboard:</p>
  <pre><code>UINavigationController *navController = [storyboard instantiateViewControllerWithIdentifier:@&quot;navigationController&quot;];
  [self presentViewController:navController animated:YES completion:nil];
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Z2HcP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z2HcP.png" alt="storyboard implementation" /></a></p>
  <p>EDIT: storyboard implementation looks like this</p>