title: how to set a tableview delegate
body: <p>I'm trying to use a <code>UITableView</code> without using a nib and without using a <code>UITableViewController</code>.</p>
  
  <p>I have added a <code>UITableView</code> instance to a <code>UIViewController</code> Like So</p>
  
  <pre><code>mytable = [[UITableView alloc] initWithFrame:CGRectMake(22, 207, 270, 233)];
  [mytable setDelegate:self];
  [self.view mytable];
  </code></pre>
  
  <p>Also I have added the following table view methods to my <code>UIViewController</code> (cut for brevities sake)</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  </code></pre>
  
  <p>I am getting a warning saying that my <code>UIViewController</code> does not implement <code>UITableView</code> delegate protocol.</p>
  
  <p>Whats the correct way to tell the table view where its delegate methods are?</p>
  
  <p>(This is my first attempt at trying to use a <code>UITableView</code> without selecting the <code>UITableTableview</code> controller from the new file options)</p>