I\'ve a UITableViewCell in a UITableViewController. In my cell there is a button that when you click takes you to another view with a
UITableViewCell
UITableViewController
view
This is better to use
NSIndexPath *indexPath = [self.callTable indexPathForCell:(UITableViewCell *)[[[sender superview] superview] superview]]; NSLog(@"%d",indexPath.row);