- (void)keyboardWasShown:(NSNotification*)aNotification { NSDictionary* info = [aNotification userInfo]; CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, kbSize.height, 0.0); myTableView.contentInset = contentInsets; myTableView.scrollIndicatorInsets = contentInsets; CGRect aRect = self.view.frame; aRect.size.height -= kbSize.height; if (!CGRectContainsPoint(aRect, activeField.frame.origin) ) { [self.myTabelView scrollRectToVisible:activeField.frame animated:YES]; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)