This is the code for keyboard notification i have written.The following code works fine with iOS 8.1 SDK.But the notification for keyboardWasShown: and keyboardWillBeHidden: is not received in iOS 8.3 device.Is there some issue with iOS 8.3 sdk?
- (void)registerForKeyboardNotifications {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWasShown:)
name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillBeHidden:)
name:UIKeyboardWillHideNotification object:nil];
}
- (void)keyboardWasShown:(NSNotification*)aNotification {
}
- (void)keyboardWillBeHidden:(NSNotification*)aNotification{
}
The problem was with the keyboard in iOS 8.3. Uncheck the Predictive and Split keyboard from the Keyboard settings and the notifications works fine.