ios-MBProgressHUD+MJ.h

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

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

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

posted @ 2016-04-18 16:56  qike  阅读(667)  评论(0编辑  收藏  举报