title: Embedding a MasterDetail ViewController in a Tab Bar
body: <p>I currently have a MasterDetail view app that I would like to add a Tab Bar to. I have added the tab bar successfully to the Master tableview and I have a table view set to be the other tab. This is working, but my question is: </p>
  
  <p>If I want to have another MasterDetail View on the other tab, would I add a SplitView Controller to the Tab Bar Controller? Or would I just add a table view controller, size it to Master, and then add a UIView and size it to detail and push all of the data via segue?</p>
  
  <p>Might be a dumb question, but I haven't seen any answers on this yet.</p>
  
  <p>*<strong><em>EDIT</em>*</strong></p>
  
  <p>Here is the contents of my AppDelegate.m so far:</p>
  
  <pre><code>#import "AppDelegate.h"
  #import "LeftViewController.h"
  #import "RightViewController.h"
  
  @implementation AppDelegate
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      UISplitViewController *splitViewController = (UISplitViewController   *)self.window.rootViewController;
      UINavigationController *leftNavController = [(UITabBarController *)splitViewController.viewControllers[0] viewControllers][0];
      LeftViewController *leftViewController = (LeftViewController *)[leftNavController topViewController];
      UINavigationController *rightNavController = [splitViewController.viewControllers objectAtIndex:1];
      RightViewController *rightViewController = (RightViewController *)[rightNavController topViewController];
  
      Player *selectedPlayer = [[leftViewController players]objectAtIndex:0];
      [rightViewController setPlayer:selectedPlayer];
  
      leftViewController.delegate = rightViewController;
      return YES;
  }
  
  - (void)applicationWillTerminate:(UIApplication *)application
  {
      // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  }
  
  @end
  </code></pre>