iOS: Disable UITableView animation when keyboard shows up

后端 未结 1 1833
眼角桃花
眼角桃花 2020-12-30 12:48

Everyone wants to move the UITableView when the keyboard pops up, but I\'m looking for a way to disable the automatic animation to the cursor when the keyboard pops up. I\'m

1条回答
  •  梦谈多话
    2020-12-30 13:09

    The automatic scrolling code resides in tableViewController, so auto-scrolling can't be disabled. Instead of subclassing from UITableViewController you can subclass from UIViewController and use a tableView inside it. If you are willing to use UITableViewController itself, you can override viewWillAppear and don't call [super viewWillAppear].

    0 讨论(0)
提交回复
热议问题