title: Adding Child View Controller view to dynamic UITableViewCell
body: <p>How can I add a view of a child view controller to a custom <code>UITableViewCell</code>? I can add the view like this inside <code>cellForRowAtIndexPath</code>:</p>
  
  <pre><code>self.addChildViewController(controlsViewController)
  cell!.cellView.addSubview(controlsViewController.view)
  controlsViewController.didMoveToParentViewController(self)
  </code></pre>
  
  <p>But when the cell disappears, I need to remove this child view controller. I'm not really sure how to do that. Is there a better way to go about this?</p>