title: How to set UITabBarController to View?
body: <p>I have an app that have several views. In one view I would like to add a <code>UITabBarController</code>.</p>
  
  <p>In another app I used this to add the <code>UITabBarController</code> to the <code>rootViewController</code>, but I am not sure if that is even the correct way to do it.</p>
  
  <p>in the .h</p>
  
  <pre><code>@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
  </code></pre>
  
  <p>in the .m</p>
  
  <pre><code>@synthesize tabBarController=_tabBarController;
  self.window.rootViewController = self.tabBarController;
  </code></pre>