Reputation: 141
UITableView does not auto-scroll when a UITextField/UITextView becomes the first responder. It used to work just fine on iOS 9-11, but now it doesn't work anymore on iOS 12.
What should I set up or change in the tableView
to fix the behavior?
Reference GIF
Upvotes: 5
Views: 2146
Reputation: 141
I found solution in the code, as you said. This part of code was blame:
if #available(iOS 11.0, *) {
tableView.contentInsetAdjustmentBehavior = .never
} else {
automaticallyAdjustsScrollViewInsets = false
}
Upvotes: 9