最佳答案
您需要将 contentInset 添加到您的 UITableView
第一个值用于 top inset 第二个值用于 left 第三个值用于 bottom 和最后一个 right
像这样
self.tableView.contentInset = UIEdgeInsetsMake(10, 0, 0, 0) //replace 10 by your needed value
关于ios - navigationBar 和 tableview 单元格之间的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48873169/