UITableView解决touch失效问题
2017-02-24 本文已影响33人
崔又淇
// 给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];
}