title: Dismissing and presenting a view controller makes a previous controller appear
body: <p>I am trying to get this method working correctly, but for some reason this function makes a previous controller (start up controller) appear instead of displaying the home controller.When I exit the start up controller my home controller shows up and works fine. The code below should be fine. Is there a way to prevent root controller popping up.Perhaps making disappear for good? Willing to post the root controller code if needed.   </p>
  
  <pre><code>    UIViewController *startupController;
  
      startupController = [[homeViewController alloc] initWithNibName:nil bundle:nil];
  
      [self.navigationController pushViewController:startupController animated:NO];
      [self dismissModalViewControllerAnimated:NO];
  </code></pre>
  
  <p>Update: The code above me is located in a tab bar method where I created a tab bar, the reason  behind it is I am trying to make it where if you push a certain tab bar button it will display this controller. Controllers are related by navigation controller. And here is also another tip, if I use this method  <code>[self presentViewController:homeNavigationController animated:NO completion:nil];</code> it appears normally without showing the root controller, but tab bars disappear.</p>