You need to make sure that there is a space in the view of the contents of the table view for scrolling. I need to scroll the table view, because the user clicks on the text field and keyboard, I need to expand the contents of the table view to the height of the keyboard so that I can view the list of tables. Like this:
UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, keyboardFrame.size.height, 0.0); self.tableView.contentInset = contentInsets; self.tableView.scrollIndicatorInsets = contentInsets; [self.tableView scrollToRowAtIndexPath:self.currentEditingCellIndexPath atScrollPosition:UITableViewScrollPositionNone animated:YES];
source share