In my app I have some complex logic surrounding the hiding and showing of the keyboard. I am interested in detecting when the user (who has an iPad) specifically taps on the iPad keyboard hide button:
I am not interested in detecting when the keyboard is supposed to hide, only when the user actually physically taps on this button. Any suggestions?
Thank you!
I was looking for an exact same solution, and I did found it in the documentation after all. You get a whole package of keyboard notifications:
- UIKeyboardWillShowNotification
- UIKeyboardDidShowNotification
- UIKeyboardWillHideNotification
- UIKeyboardDidHideNotification
- UIKeyboardWillChangeFrameNotification
- UIKeyboardDidChangeFrameNotification
I was interested in "UIKeyboardWillHideNotification". So just implemented:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(KeyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
Et voilà! Hope this helps, even it's an year late answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With