This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)keyboardWillShow:(NSNotification*)notification | |
{ | |
NSValue* keyboardFrameValue = [notification.userInfo objectForKey:UIKeyboardFrameEndUserInfoKey]; | |
CGRect keyboardFrame = [keyboardFrameValue CGRectValue]; | |
keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; | |
CGFloat tableViewHeight = CGRectGetMinY(keyboardFrame) - CGRectGetMinY(self.view.bounds); | |
// Get the duration of the animation. | |
NSValue* animationDurationValue = [notification.userInfo objectForKey:UIKeyboardAnimationDurationUserInfoKey]; |