[textView resignFirstResponder];

@try

{

Class UIKeyboardImpl = NSClassFromString(@"UIKeyboardImpl");

id activeInstance = [UIKeyboardImpl performSelector:@selector(activeInstance)];

[activeInstance performSelector:@selector(dismissKeyboard)];

}

@catch (NSException *exception)

{

NSLog(@"%@", exception);

}

相关文章:

  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-08
  • 2021-09-08
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2021-11-10
  • 2021-09-08
  • 2021-06-18
  • 2021-09-03
相关资源
相似解决方案