title: Trying to adding a UITableView into a view hierchary with it's own view controller
body: <p>I have a view hierarchy that has a UIViewController as Files Owner in the XIB. </p>
  
  <p>I need to add a UITableView into the hierarchy that has it's own controller (a UITableViewController subclass) because I am implementing a pull-to-refresh UI using <a href="http://github.com/leah/PullToRefresh" rel="nofollow">http://github.com/leah/PullToRefresh</a></p>
  
  <p>What I did:</p>
  
  <ol>
  <li>created the new UITableViewController subclass, <code>BuddyTableViewController</code></li>
  <li>implemented the datasource &amp; delegate methods</li>
  <li>added the UITableView into the hierarchy in Interface Builder</li>
  <li>dropped an NSObject into the XIB and set the class to <code>BuddyTableViewController</code></li>
  <li>set the delegate &amp; datasource of the tableview to <code>BuddyTableViewController</code> and hooked the UITableView to the tableView property of <code>BuddyTableViewController</code></li>
  </ol>
  
  <p>When the view displays it crashes immediately.  </p>
  
  <p>When running in debug with <code>NSZombieEnable=YES</code> reveals the message:</p>
  
  <pre><code>*** -[BuddyTableViewController numberOfSectionsInTableView:]: message sent to deallocated instance 0x69551d0
  </code></pre>
  
  <p><code>numberOfSectionsInTableView</code> only contains <code>return 1;</code></p>
  
  <p>I don't understand why <code>BuddyTableViewController</code> is being deallocated. </p>