title: Howto switch between UIViewControllers without using a tab bar?
body: <p>I have a UINavigationController. In the 2nd level of my hierarchy, I want to show a view controller with a toolbar in which I inserted a segmented control. Through it the user can select between two "views" of the same page that we can call A and B (like in the Calendar application).</p>
  
  <p>When the user press the A segment, the A view must be shown. When the user press the B segment, the B view must be shown.</p>
  
  <p>A and B are complex views, so I prefer to manage them in two separate view controllers called AViewController and BViewController.</p>
  
  <p>Initially I had thought to insert AViewController and BViewController in a UITabBarViewController, but in the pushViewController:animated: official documentation I read that the pushed view controller "cannot be an instance of tab bar controller."</p>
  
  <p>Do you know how can I switch between AViewController and BViewController without using the UITabBarViewController?</p>
  
  <p>Thank you very much!</p>