diff --git a/DAKeyboardControl/DAKeyboardControl.m b/DAKeyboardControl/DAKeyboardControl.m index 41a95d3c..f9a15568 100644 --- a/DAKeyboardControl/DAKeyboardControl.m +++ b/DAKeyboardControl/DAKeyboardControl.m @@ -55,30 +55,30 @@ - (void)addKeyboardControl:(BOOL)panning actionHandler:(DAKeyboardDidMoveBlock)a // Register for keyboard notifications [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardWillShow:) + selector:@selector(inputKeyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardDidShow:) + selector:@selector(inputKeyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; // For the sake of 4.X compatibility [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardWillChangeFrame:) + selector:@selector(inputKeyboardWillChangeFrame:) name:@"UIKeyboardWillChangeFrameNotification" object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardDidChangeFrame:) + selector:@selector(inputKeyboardDidChangeFrame:) name:@"UIKeyboardDidChangeFrameNotification" object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardWillHide:) + selector:@selector(inputKeyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(keyboardDidHide:) + selector:@selector(inputKeyboardDidHide:) name:UIKeyboardDidHideNotification object:nil]; @@ -172,7 +172,7 @@ - (void)responderDidBecomeActive:(NSNotification *)notification #pragma mark - Keyboard Notifications -- (void)keyboardWillShow:(NSNotification *)notification +- (void)inputKeyboardWillShow:(NSNotification *)notification { CGRect keyboardEndFrameWindow; [[notification.userInfo valueForKey:UIKeyboardFrameEndUserInfoKey] getValue: &keyboardEndFrameWindow]; @@ -198,7 +198,7 @@ - (void)keyboardWillShow:(NSNotification *)notification }]; } -- (void)keyboardDidShow:(NSNotification *)notification +- (void)inputKeyboardDidShow:(NSNotification *)notification { // Grab the keyboard view self.keyboardActiveView = self.keyboardActiveInput.inputAccessoryView.superview; @@ -212,7 +212,7 @@ - (void)keyboardDidShow:(NSNotification *)notification } } -- (void)keyboardWillChangeFrame:(NSNotification *)notification +- (void)inputKeyboardWillChangeFrame:(NSNotification *)notification { CGRect keyboardEndFrameWindow; [[notification.userInfo valueForKey:UIKeyboardFrameEndUserInfoKey] getValue: &keyboardEndFrameWindow]; @@ -236,12 +236,12 @@ - (void)keyboardWillChangeFrame:(NSNotification *)notification }]; } -- (void)keyboardDidChangeFrame:(NSNotification *)notification +- (void)inputKeyboardDidChangeFrame:(NSNotification *)notification { // Nothing to see here } -- (void)keyboardWillHide:(NSNotification *)notification +- (void)inputKeyboardWillHide:(NSNotification *)notification { CGRect keyboardEndFrameWindow; [[notification.userInfo valueForKey:UIKeyboardFrameEndUserInfoKey] getValue: &keyboardEndFrameWindow]; @@ -265,7 +265,7 @@ - (void)keyboardWillHide:(NSNotification *)notification }]; } -- (void)keyboardDidHide:(NSNotification *)notification +- (void)inputKeyboardDidHide:(NSNotification *)notification { self.keyboardActiveView.hidden = NO; self.keyboardActiveView.userInteractionEnabled = YES;