title: Tableview button get index.row
body: <p>I got a button in a tableview cell (named "deleteTemplate"), and when it's pressed i should get the "index.row" for the cell the button is in. Anybody knows how to get the "index.row" for the cell, when you click a button in the cell?</p>
  
  <p>My current code for the button:</p>
  
  <pre><code>UITableViewCell *clickedCell = (UITableViewCell *)[[sender superview] superview];
  NSIndexPath *clickedButtonIndexPath = [self.tableView indexPathForCell:clickedCell];
  
  NSDictionary *dic = [tableData objectAtIndex:clickedButtonIndexPath.row];
  </code></pre>
  
  <p>But clickedButtonIndexPath = NULL? :(</p>
  
  <p>This worked in iOS 6.</p>
  
  <p>Thank you!!!</p>