title: TabBarController and SplitViewController
body: <p>i want my <code>splitviewController</code> to be displayed in within a <code>TabBarController</code>. Unfortunately, I firstly decided to just have a <code>SplitViewController</code> and chose apple's template. Now i am in the inconvenient position not knowing how to add it to a tab bar.</p>
  
  <p>I tried several stuff that was explained here on StackOverflow but the best result was a black screen with a tab bar below it :-(</p>
  
  <p>I am just struggling to find a nice and simple way.</p>
  
  <p>Code of my <code>Appdelegate</code>:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
  {
  // Override point for customization after application launch.
  // Add the split view controller's view to the window and display.
  self.window.rootViewController = self.splitViewController;
  [self.window makeKeyAndVisible];
  
  NSArray *searchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  documentFolderPath = [searchPaths objectAtIndex: 0];
  self.rootViewController.directoryPath = documentFolderPath; 
  
  NSURL *docUrl = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];
  if ([docUrl isFileURL]) {
      NSString *path = [docUrl path];
      self.detailViewController.currentFilePath = path;
      [self.detailViewController setDetails:path newFile:FALSE];
  }
  return YES;
  </code></pre>