关于ios:当键盘出现时,UITableViewController不会向上滚动活动文本字段的任何原因?

Any reason a UITableViewController doesn't scroll the active textfield up when the keyboard appears?

我有一个UITableViewController,其中包含具有UITextField的单元格的表。 当键盘出现在这些文本字段中添加或编辑文本时,这些字段必须向上移动,以免被键盘遮挡。 这应该由UITableViewController自动处理:

来自Apple:

Note: A table view controller supports inline editing of table view
rows; if, for example, rows have embedded text fields in editing mode,
it scrolls the row being edited above the virtual keyboard that is
displayed.

可能问题是我使用的是SplitViewController,右侧是UITableViewController(较大的分割),左侧是另一个视图。

我错过了什么? 是否只有某些情况下UITableViewController将处理此而不是其他情况?


我有同样的问题。 就我而言,我忘了打电话:

1
[super viewWillAppear:animated];

请参阅:UITableViewController在键盘出现时不滚动视图