通过控件获取cell

#pragma mark - 通过控件获取cell

-(UITableViewCell*)GetCellFromTableView:(UITableView*)tableView Sender:(id)sender {

    CGPoint pos = [sender convertPoint:CGPointZero toView:tableView];

    NSIndexPath *indexPath = [tableView indexPathForRowAtPoint:pos];

    return [tableView cellForRowAtIndexPath:indexPath];

}

原文地址:https://www.cnblogs.com/jiackyan/p/4014223.html