title: iOS: split uiview with other ViewController view
body: <p>I'm trying to make something like iPad setting screen but in a subview on my controller.. so I can't use UISplitViewController</p>
  
  <p>i've made a subview with 2 subviews the left one is tablevew the right one is normal view to subview the controller i want to add in it.</p>
  
  <p>I'm using this snippet for that</p>
  
  <pre><code>UIStoryboard*  sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  ViewController * vc  = [sb instantiateViewControllerWithIdentifier:@"vc"];
  vc.view.frame = self.customView.bounds;
  [self.customView addSubview:vc.view];
  </code></pre>
  
  <p>But it crashes with error </p>
  
  <blockquote>
    <p>tableView:cellForRowAtIndexPath:]: message sent to deallocated </p>
  </blockquote>
  
  <p>instance now after i enabled zombie obj </p>
  
  <p>Can anyone figure out why is this happen or even better is there an open source component that can do this ?</p>