点击tablecell中的一个按钮,确定cell所在的行

- (void) del:(UIButton *) button {
    NSLog(@"%s",__FUNCTION__);
    UITableViewCell * cell = (UITableViewCell *) [[button superview] superview];
    NSIndexPath * path = [self.favouriteTableView indexPathForCell:cell];
    NSLog(@"index row = %d",path.row);
}
原文地址:https://www.cnblogs.com/benbenzhu/p/3470676.html