Как прослушать показ и скрытие плавающей клавиатуры на iPad? UIKeyboardWillShowNotification
или UIKeyboardWillHideNotification
не перезваниваются. Основной код ниже:
- (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
}