Skip to content

Commit

Permalink
revert changes from PR jessesquires#646, fix jessesquires#706. PR jes…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Feb 6, 2015
1 parent 9e6e0f2 commit 27d7a2e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}];
}

Expand Down
10 changes: 0 additions & 10 deletions JSQMessagesViewController/Controllers/JSQMessagesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 27d7a2e

Please sign in to comment.