title: UITableView programmatically create delegate object?
body: <p>I have a question regarding setting up a custom delegate class for use with UITableView. What I have done is as follows:</p>
  
  <ul>
  <li>Setup a new class (in sperate *.h and *.m files for the class)</li>
  <li>Conformed that new class to the <code>&lt;UITableViewDelegate, UITableViewDataSource&gt;</code> protocols</li>
  <li>Added the required methods.</li>
  <li>Created a pointer to the new object using @property and IBOutlet.</li>
  <li>In InterfaceBuilder created and assigned an object template to my new class</li>
  <li>Assigned the dataSource and delegate connections.</li>
  </ul>
  
  <p>This all works fine. My question is if I don't want to use interfaceBuilder to setup and instantiate my new delegate class how do I go about doing that in Xcode instead? More specifically how would I:</p>
  
  <ul>
  <li>Instantiate the delegate class, would that be created / owned by the controller?</li>
  <li>Set the dataSource and delegate connections?</li>
  <li>What is the best way of doing this?</li>
  </ul>