如问题所述:当我将原型(prototype) UITableViewCell 添加到我的 TableView 时,该单元格未显示在顶部,这是一张图片:
如何让单元格再次出现在 TableView 的顶部?
最佳答案
问题是您的 trackViewController.automaticallyAdjustsScrollViewInsets == YES,因此 64px 的额外 topInset 将添加到其 View 中的第一个 UIScrollView(在您的情况下是 UITableView)。
您可以执行以下操作:
将表格 View 原点 y 设置为 0
或
将 automaticallyAdjustsScrollViewInsets 设置为 NO。
关于objective-c - 原型(prototype) UITableViewCell 不在 Storyboard 中的 UITableView 顶部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22379567/