通过event 找到tableview 上的某一个cell

- (void)didclickBtn_edit:(UIButton *)sender event:(UIEvent *)event

{

    UITouch *touch = [[event allTouches] anyObject];

    CGPoint currentTouchPosition = [touch locationInView:self.tableview_showdata];

    NSIndexPath *indexPath = [self.tableview_showdata indexPathForRowAtPoint: currentTouchPosition];

    if (indexPath != nil)

    {

        NSLog(@"%ld,%ld",indexPath.row,indexPath.section);

    }

}

原文地址:https://www.cnblogs.com/yinyakun/p/4314102.html