IOS: disable UITableView animation when keyboard appears

Everyone wants to move the UITableView when the keyboard pops up, but I'm looking for a way to turn off the automatic animation of the cursor when the keyboard pops up. I encounter odd distortion / shaking / unstable scrolling when the keyboard pops up and causes the UITableView to scroll the cursor (so as not to block it).

Each of my UITableView cells contains a UITextView. I do not make any other animations when the keyboard appears.

At this point, I would like to completely disable the animation and manually scroll to the desired CGPoint.

Thanks!

+6
source share
1 answer

The automatic scroll code is located in tableViewController, therefore, automatic scrolling cannot be disabled. Instead of subclassing from UITableViewController, you can subclass from UIViewController and use tableView inside it. If you want to use the UITableViewController yourself, you can override viewWillAppear and not call [super viewWillAppear].

+8
source

Source: https://habr.com/ru/post/912571/


All Articles