title: UITableViewController not working as a delegate for another VC?
body: <p>I'm quite new to the iOS SDK, but I've been trying to use a UITableViewController as a delegate for another VC. The problem is part of a bigger application but I simplified it below, where I try having the UITableViewController dismiss the second VC once "Done" is pressed on the second VC.</p>
  
  <p><strong>MainViewController.h (UITableViewController)</strong></p>
  
  <pre><code>    #import &lt;UIKit/UIKit.h&gt;
      #import "SecondViewController.h"
  
      @interface MainViewController : UITableViewController &lt;SecondViewControllerDelegate&gt;
      @end
  </code></pre>
  
  <p><strong>MainViewController.m</strong></p>
  
  <pre><code>- (void)doneEditing {
      [self dismissViewControllerAnimated:YES completion:nil];
  }
  </code></pre>
  
  <p><strong>SecondViewController.h</strong></p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @class SecondViewController;
  @protocol SecondViewControllerDelegate &lt;NSObject&gt;
  - (void)doneEditing;
  @end
  
  @interface SecondViewController : UIViewController
  
  @property (weak, nonatomic) id &lt;SecondViewControllerDelegate&gt; delegate;
  - (IBAction)done:(id)sender;
  @end 
  </code></pre>
  
  <p><strong>SecondViewController.m</strong></p>
  
  <pre><code>- (IBAction)done:(id)sender {
      [self.delegate doneEditing];
  }
  </code></pre>
  
  <p>It works if the Main is not a UITableViewController. I've noticed that the "Done" is recognized when touched, but the "doneEditing" method is never called. </p>