title: How do I create a UISplitView manually?
body: <p>I have an app that is going to navigate to a UISplitView (inside another view altogether) like so:</p>
  
  <pre><code>- (void) switchToMyDayView {
      NSLog(@"Show My Day Screen");
  
      if (self.myDayController.view.superview == nil) {
          if (self.myDayController == nil) {
              MyDayController *myController = [[MyDayController alloc] initWithNibName:@"MyDay" bundle:nil];
              self.myDayController = myController;
              [myController release];
          }
  
          [homeScreenController.view removeFromSuperview];
          [self.view insertSubview:self.myDayController.view atIndex:0];
      }
  }
  </code></pre>
  
  <p>Which is done on the main navigation screen</p>
  
  <p>Now, the MyDayController has a XIB called MyDay.xib which has these items:</p>
  
  <blockquote>
    <p>File's Owner: MyDayController</p>
    
    <p>First Responder: UIResponder</p>
    
    <p>Split View Controller</p>
  
  <pre><code> ----&gt;Navigation Controller
  
           ----&gt;Navigation Bar
  
           ----&gt; Table View Controller
  
                   ----&gt; Navigation Item
  
   ----&gt;View Controller
  </code></pre>
  </blockquote>
  
  <p>So, I need some more components here, I need a UITableViewController and a  UISplitViewControllerDelegate correct?</p>
  
  <p>I was going to just implement these protocols in my MyDayController, is this sort of standard?</p>
  
  <p>So, after the code above, I get an error:</p>
  
  <p>-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MyDay" nib but the view outlet was not set.</p>
  
  <p>so, how can I fix it using the UISplitViewController? I know that the UISplitViewController has a view property, but I cannot use it/connect it up in IB can I?</p>
  
  <p>Thanks a lot</p>
  
  <p>Mark</p>