// 给tableview添加手势
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(addToucheEvent:)];
[_listTableView addGestureRecognizer:tap];
- (void)addToucheEvent:(UITapGestureRecognizer *)tap {
UIButton *btn = [self viewWithTag:self.btnTag];
btn.selected = NO;
[_listTableView removeFromSuperview];
}
网友评论