为按钮添加单击事件
[cell.button addTarget:self action:@selector(handMarkTagAction: event:) forControlEvents:UIControlEventTouchUpInside];
实现单击事件
/**
标记标签
@param sender 发送者
*/
- (void)handMarkTagAction:(UIButton *)sender event:(UIEvent *)event
{
NSSet *touches = [event allTouches];
UITouch *touch = [touches anyObject];
CGPoint currentTouchPosition = [touch locationInView:self.tableView];
NSIndexPath *indexPath =[self.tableView indexPathForRowAtPoint:currentTouchPosition];
QDWorkBenchTakeGoodDetailCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
}