[cell.btnFreeBankCard addTarget:self action:@selector(unbundleBankCard:event:) forControlEvents:UIControlEventTouchUpInside];
/**
标记标签
@param sender 发送者
*/
- (void)unbundleBankCard:(UIButton *)sender event:(UIEvent *)event
{
NSSet *touches = [event allTouches];
UITouch *touch = [touches anyObject];
CGPoint currentTouchPosition = [touch locationInView:self.tableBankCardList];
NSIndexPath *indexPath =[self.tableBankCardList indexPathForRowAtPoint:currentTouchPosition];
........
处理 按钮点击事件
}
网友评论