获得点击的button所在的cell单元格
自定义cell,button,tableView
UITableView *cell = (UITableView *)[[self.btn superview] superview] ; NSIndexPath *index = [self.tableView indexPathForCell:cell]; NSLog(@"index is = %li",(long)index.row);
自定义cell,button,tableView
UITableView *cell = (UITableView *)[[self.btn superview] superview] ; NSIndexPath *index = [self.tableView indexPathForCell:cell]; NSLog(@"index is = %li",(long)index.row);