通过点击cell上的Button获取tableView的indexPath

- (void)buttonClickedWith:(UIButton *)button event:(UIEvent *)event
{
    NSSet *touches =[event allTouches];
    UITouch *touch =[touches anyObject];
    CGPoint point = [touch locationInView:mainTableView];
    NSIndexPath *indexPath= [mainTableView indexPathForRowAtPoint:point];
}

 

posted on 2015-10-30 09:29  rgshio  阅读(196)  评论(0编辑  收藏  举报

导航