title: Adding UITabBarController to a UIViewController
body: <p>My app currently has a <code>UINavigationController</code> and I'd like to push a <code>UITabBarController</code> at some point when a button is clicked. I am trying to create it on Interface Builder (as opposed to programatically).</p>
  
  <p>All online tutorials show how to create a tab bar based app, which involves dragging a <code>UITabBarController</code> into the <code>MainWindow.xib</code> which is obviously not what I want.</p>
  
  <p>What I did was create a <code>UIViewController</code>, and its nib file, dragged a <code>UITabBarController</code>. Now pushing that <code>UIViewController</code> to the navigation controller will show an empty view (its empty view). Removing the view in the view controller will crash the app. How can I tell the <code>UIViewController</code> to load a <code>UITabBarController</code> instead of its own view?</p>
  
  <p><em>For those down-voting me: it would be decent to at least provide a comment. The question is not a poor question. The questions is asking for suggestions for how to use a UITabBarController in an unorthodox way. I tried most of the suggestions and they do not work. If you are down-voting, at least write a comment.</em></p>