UITableView高级技艺根据按钮位置取indexPath

UITableView高级技巧根据按钮位置取indexPath通到取得在tableView中的位置,取得所在indexPathUIButton *bu

UITableView高级技巧根据按钮位置取indexPath
通到取得在tableView中的位置,取得所在indexPath

UIButton *button = sender;
    CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.myTableView];
    NSIndexPath *indexPath =  [self.myTableView indexPathForRowAtPoint:correctedPoint];