title: When to subclass UITableView?
body: <p>I have a MainViewController, and I want to add two UITableView's to it, each with different cells. But I don't want to clog up my MainViewController code by checking in the table delegate methods which table it is, and then acting on it. It gets too messy. </p>
  
  <p>So I thought I would subclass UITableView and let it handle the cellForRow and other table methods by itself, and this way when I want to add a table to MainViewController, all I'd have to is </p>
  
  <pre><code>CustomTable *customTable = [[CustomTable alloc] init];
  [self.view addSubview:customTable];
  </code></pre>
  
  <p>and all the delegate methods would be handled in that class, leaving my MainViewController clutter free.</p>
  
  <p>Am I approaching this wrong? Should I be subclassing UITableViewController instead? What's the difference?</p>