title: Delegate not working when selecting row on UITableView
body: <p>I have a <code>UITableView</code>, which when I select a row, I want to segue to another view, where the details of the tank are displayed... The segue happens, but the delegate does not send the object etc over... I think I have my knickers in a twist over where the delegate is declared/synthesized and implemented etc...</p>
  
  <p>Here is where I declare the delegate in the header file of the <code>UITableViewController</code>:</p>
  
  <pre><code>@class iTanksV2ListViewController;
  @protocol iTanksV2ListViewControllerDelegate
  - (void) iTanksListViewController:(iTanksV2ListViewController *) sender choseTank:(tank *)tank;
  @end
  @interface iTanksV2ListViewController : UITableViewController
  @property (weak, nonatomic) id &lt;iTanksV2ListViewControllerDelegate&gt; delegate;
  @end
  </code></pre>
  
  <p>and this is what I have in the <code>UITableViewControllers</code> m file:</p>
  
  <pre><code>@implementation iTanksV2ListViewController
  @synthesize delegate = _delegate;
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
      self.tankTableView.delegate = self;
      self.tankTableView.dataSource = self;
  }
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      self.selectedTank = [self.tanks objectAtIndex:indexPath.row];
      [self.delegate iTanksListViewController:self choseTank:self.selectedTank];
  }
  </code></pre>
  
  <p>...and then here is the code I have for the delegate in the <code>DetailViewController</code> implementation file...</p>
  
  <pre><code>@interface tankDetailViewController () &lt;iTanksV2ListViewControllerDelegate&gt;
  @end
  
  -(void)iTanksListViewController:(iTanksV2ListViewController *)sender choseTank:(id)tank
  {
      self.tankToShow = tank;
  }
  </code></pre>
  
  <p>All the other variables etc are declared, I have left them out in the hope it makes things clearer - the code compiles, and the segue happens but the delegate doesn't seem to do anything!!!</p>