diff --git a/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.h b/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.h index d2578c6bd..5576e654f 100644 --- a/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.h +++ b/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.h @@ -59,13 +59,6 @@ FOUNDATION_EXPORT NSString * const JSQMessagesKeyboardControllerUserInfoKeyKeybo */ - (void)keyboardController:(JSQMessagesKeyboardController *)keyboardController keyboardDidChangeFrame:(CGRect)keyboardFrame; -/** - * Tells the delegate that the keyboard has been hidden. - * - * @param keyboardController The keyboard controller that is notifying the delegate. - */ -- (void)keyboardControllerKeyboardDidHide:(JSQMessagesKeyboardController *)keyboardController; - @end diff --git a/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.m b/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.m index ae3efe0d7..fb9127fa1 100644 --- a/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.m +++ b/JSQMessagesViewController/Controllers/JSQMessagesKeyboardController.m @@ -213,8 +213,6 @@ - (void)jsq_didReceiveKeyboardDidHideNotification:(NSNotification *)notification [self jsq_handleKeyboardNotification:notification completion:^(BOOL finished) { [self.panGestureRecognizer removeTarget:self action:NULL]; - - [self.delegate keyboardControllerKeyboardDidHide:self]; }]; } diff --git a/JSQMessagesViewController/Controllers/JSQMessagesViewController.m b/JSQMessagesViewController/Controllers/JSQMessagesViewController.m index 41ba6b439..d9793d13b 100644 --- a/JSQMessagesViewController/Controllers/JSQMessagesViewController.m +++ b/JSQMessagesViewController/Controllers/JSQMessagesViewController.m @@ -797,16 +797,6 @@ - (void)keyboardController:(JSQMessagesKeyboardController *)keyboardController k } } -- (void)keyboardControllerKeyboardDidHide:(JSQMessagesKeyboardController *)keyboardController -{ - if (![self.inputToolbar.contentView.textView isFirstResponder]) { - return; - } - - [self jsq_setToolbarBottomLayoutGuideConstant:0.0f]; - [self.inputToolbar.contentView.textView resignFirstResponder]; -} - - (void)jsq_setToolbarBottomLayoutGuideConstant:(CGFloat)constant { self.toolbarBottomLayoutGuide.constant = constant;