// 监听tablview的点击事件
- (void)addAGesutreRecognizerForYourView

{
    
    UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapGesturedDetected:)]; // 手势类型随你喜欢。
    
    tapGesture.delegate = self;
    
    [self.chooseView addGestureRecognizer:tapGesture];
    
}

- (void)tapGesturedDetected:(UITapGestureRecognizer *)recognizer

{
    [self.chooseView endEditing:YES];
    // do something
    
}

 

相关文章:

  • 2021-05-12
  • 2022-02-02
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案