title: Load UITableViewController programmatically and add view as subview
body: <p>I want to load a UITableViewController inside a UIView because I want to change the view on button click (like UITabBar but with my own buttons). I'm using a storyboard and have defined a TableViewController with custom class "InitialTableViewController" and identifier "InitialView".</p>
  
  <p>My code look like this:</p>
  
  <pre><code>#import "MyViewController.h"
  #import "InitialTableViewController.h"
  
  @interface MyViewController ()
  
  @end
  
  @implementation MyViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
      InitialTableViewController *tableControl = [self.storyboard instantiateViewControllerWithIdentifier:@"InitialView"];
  
      [[self view] addSubview:[tableControl view]];
  }
  
  - (void)viewDidUnload
  {
      [super viewDidUnload];
      // Release any retained subviews of the main view.
  }
  
  @end
  </code></pre>
  
  <p>The view starts and I can see my table but the code inside "InitialTableViewController" doesn't work.</p>
  
  <p>What can I do?</p>