点击表格输入框:
1.输入框回掉textViewDidBeginEditing(_block_invoke line:213);
2.收到键盘显示通知(-[XQBAskQuestionViewController keyboardWasShown:]:335);
3.由于手机屏幕小,键盘盖住了输入框;
4.收到键盘隐藏通知,实际上键盘没有隐藏(_block_invoke line:221)。
只第一次唤醒键盘时出现,第二次唤醒时没有误报键盘隐藏。
具体的日志:
2022-05-12 16:56:06:415 xinqubang[2982:1371228] XQBAskQuestionDescribeCell.m:-[XQBAskQuestionDescribeCell textViewDidBeginEditing:]:179 Debug:keyBoard123:0.000000 function:-[XQBAskQuestionViewController viewDidLoad] content:NSConcreteNotification 0x2827c75d0 {name = UIKeyboardWillShowNotification; userInfo = { UIKeyboardFrameBeginUserInfoKey : NSRect: {{0, 667}, {375, 0}}, UIKeyboardCenterEndUserInfoKey : NSPoint: {187.5, 537}, UIKeyboardBoundsUserInfoKey : NSRect: {{0, 0}, {375, 260}}, UIKeyboardFrameEndUserInfoKey : NSRect: {{0, 407}, {375, 260}}, UIKeyboardAnimationDurationUserInfoKey : 0.25, UIKeyboardCenterBeginUserInfoKey : NSPoint: {187.5, 667}, UIKeyboardAnimationCurveUserInfoKey : 7, UIKeyboardIsLocalUserInfoKey : 1 }} 2022-05-12 16:56:06:477 xinqubang[2982:1371228] XQBAskQuestionViewController.m:-[XQBAskQuestionViewController keyboardWasShown:]:335 Debug:keyBoard1:260.000000,self.keyboardHeight:304.000000 function:-[XQBAskQuestionViewController viewDidLoad]_block_invoke line:221