我有一个 UIView,其中包含UITexView一个 Button。我有一个代表UITextViewDelegate。
当我第一次在 UITextView 上设置光标时,会调用委托函数"textViewShouldEndEditing",并且此函数会触发UIKeyboardWillShowNotification通知。到目前为止,一切都很好。
当我点击按钮时,我调用了 function [self.textView resignFirstResponder];,然后这个函数调用了 delegate "textViewShouldEndEditing",但是通知UIKeyboardWillHideNotification永远不会被调用。
我有一个通知监听器
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(_keyboardWillHide:)
name:UIKeyboardWillHideNotification
object:nil];
有什么遗漏吗???