本文介绍了iPad:如何知道按下iPad键盘的返回键?请检查图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道在按下以下键时将调用哪个方法。
I want to know that which method will be called when the following key is pressed.
我想在上面按键开始动作。
I want to start action on above key press.
我怎么知道这被按下了?
How do I know this is pressed ?
推荐答案
观察 UIKeyboardDidHideNotification
通知。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil];
并且......
- (void)keyboardDidHide:(NSNotification *)aNotification {
}
如果您需要在键盘开始消失之前收到通知,您也可以将其更改为 UIKeyboardWillHideNotification
。
You can also change it to UIKeyboardWillHideNotification
if you need to be notified BEFORE the keyboard starts to disappear.
这篇关于iPad:如何知道按下iPad键盘的返回键?请检查图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!