showError: 会在[self.textfield resignFirstResponder];执行时隐藏不能达到显示2.5秒左右的效果

解决方法:
延时执行隐藏键盘的代码,延时正好等于showError:显示时长
[self performSelector:@selector(hideKeyBoardAfterShowCommentNote) withObject:self afterDelay:2.5];

- (void)hideKeyBoardAfterShowCommentNote
{
       [self.textfield resignFirstResponder];
}

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-05
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-06-09
相关资源
相似解决方案