title: How to connect a container view to a childviewcontroller.view
body: <p>On IOS 5.1 I have added a container view to a viewcontroller on storyboard. I want to connect that container view via <code>IBOutlet</code>, so I can manage it easily on IB.</p>
  
  <p>I have tried to use a regular <code>UIView</code>:</p>
  
  <pre><code>@property (nonatomic,weak) IBOutlet UIView *leftView; //connected this to container view on interface builder
  </code></pre>
  
  <p>then, if I use this, it doesn't work</p>
  
  <pre><code>[self.leftView addSubview:tableVC.view];
  </code></pre>
  
  <p>If I add a childview controller programmatically  it works but it covers full screen of course.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
      UIStoryboard*  sb = [UIStoryboard storyboardWithName:@"MainStoryboard"
                                                    bundle:nil];
      UITableViewController *tableVC = [sb instantiateViewControllerWithIdentifier:@"LogMasterViewController"];
      [self.view addSubview:tableVC.view];
  
      [self addChildViewController:tableVC];
      [tableVC didMoveToParentViewController:self];
  }
  </code></pre>
  
  <p>How can I connect container view to child view controller? </p>