title: iOS 8 Keyboard - Issue with pushing the UITextField up when keyboard was shown
body: <p>I have a message like chat window. When the keyboard was shown, I would push the UITextField so it appears to be right above the keyboard. In iOS 7, it works fine, but it doesn't work on iOS 8. Here's my code</p>
  
  <pre><code>// Detect the keyboard events
  
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) name:UIKeyboardWillShowNotification object:nil];
  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillBeHidden:) name:UIKeyboardWillHideNotification object:nil];
  
  // Listen to keyboard shown/hidden event and resize. 
  
  - (void)keyboardWasShown:(NSNotification*)aNotification
  {
      NSDictionary* info = [aNotification userInfo];
      CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
  
      [UIView animateWithDuration:0.2f animations:^{
  
          CGRect frame = self.textInputView.frame;
          frame.origin.y -= kbSize.height;
          self.textInputView.frame = frame;
  
          frame = self.myTableView.frame;
          frame.size.height -= kbSize.height;
          self.myTableView.frame = frame;
      }];
      [self scrollToTheBottom:NO];
  }
  
  
  - (void)keyboardWillBeHidden:(NSNotification*)aNotification
  {
       NSDictionary* info = [aNotification userInfo];
       CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
  
      [UIView animateWithDuration:0.2f animations:^{
  
          CGRect frame = self.textInputView.frame;
          frame.origin.y += kbSize.height;
          self.textInputView.frame = frame;
  
          frame = self.myTableView.frame;
          frame.size.height += kbSize.height;
          self.myTableView.frame = frame;
      }];
  }
  </code></pre>