I have a UITableView
with 7 cells and every cell has a text field inside it. When the keyboard appears it hides the last cell so it is quite difficult to see what has been input until and unless the keyboard disappears.
Can anyone guide me how I can scroll this UITableview
up when the keyboard appears so I don't have this problem?
Try this one:
func textFieldDidBeginEditing(textField: UITextField) {
tableView.setContentOffset(CGPointMake(0, textField.center.y-60), animated: true)
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With