Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad : How to know Return key of iPad keyboard is pressed ? Please check image

I want to know that which method will be called when the following key is pressed.

keyboard screenshot

I want to start action on above key press.

How do I know this is pressed ?

like image 937
Devang Avatar asked Nov 29 '22 09:11

Devang


1 Answers

Observe the UIKeyboardDidHideNotification notification.

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil];

And...

- (void)keyboardDidHide:(NSNotification *)aNotification {

}

You can also change it to UIKeyboardWillHideNotification if you need to be notified BEFORE the keyboard starts to disappear.

like image 144
Simon Lee Avatar answered Dec 09 '22 12:12

Simon Lee