Conform to this protocol and when the keyboard comes up your tableviews' insets will be adjusted and it won't be covered up by the keyboard!
class ExampleTableViewController: UITableViewController, TableViewInsetsAdjusting {
override func viewDidLoad() {
super.viewDidLoad()
setupInsetAdjust()
}
deinit {
takeDownInsetAdjust()
}
Here it is all together:
class ExampleTableViewController: UITableViewController, TableViewInsetsAdjusting {
override func viewDidLoad() {
super.viewDidLoad()
setupInsetAdjust()
}
deinit {
takeDownInsetAdjust()
}
}
Here's a blog post about it: CheckoutMyCode