-(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event{

     UITouch*touch =[touches anyObject];

     if(touch.phase==UITouchPhaseBegan){

         //find first response view

         for(UIView*view in[self.view subviews]){

             if([view isFirstResponder]){

                 [view resignFirstResponder];

                 break;

             }

         }

     }

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2021-09-05
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
相关资源
相似解决方案