How to listen floating keyboard show and hide on iPad? UIKeyboardWillShowNotification
or UIKeyboardWillHideNotification
won't be called back. Main code below:
- (void)viewDidLoad() {
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide) name:UIKeyboardWillHideNotification object:nil];
}
- (void)keyboardWillShow:(NSNotification *)note {
// NOT called back
}
- (void)keyboardWillHide {
// NOT called back
}