Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

detect iPad keyboard Hiding button

Tags:

ipad

Hi is there any way to detect iPad keyboard hiding button ? i mean when user press this button :

alt text

something going to happen !

like image 471
Mc.Lover Avatar asked Aug 20 '10 16:08

Mc.Lover


1 Answers

I'm not sure what you want to accomplish, but maybe this can help you: Register with NSNotificationCenter to receive the UIKeyboardWillHideNotification and/or UIKeyboardDidHideNotification.

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(myKeyboardWillHideHandler:)
                                             name:UIKeyboardWillHideNotification
                                           object:nil];

...

- (void) myKeyboardWillHideHandler:(NSNotification *)notification {
    NSLog(@"Keyboard wants to hide. What a coward.");
}
like image 160
DarkDust Avatar answered Sep 22 '22 06:09

DarkDust