0

How I can scroll table view to position TextField to center of the screen when keyboard has shown?

1 Answers1

0

You have to subscribe on NSNotification.Name.UIKeyboardWillShow and scroll the table when it needed.

tableView.scrollToRow(at: indexPath, at: .middle, animated: true)
Vyacheslav
  • 26,359
  • 19
  • 112
  • 194