【发布时间】:2018-01-23 07:21:14
【问题描述】:
self.tableView.estimatedSectionHeaderHeight = 20.0
self.tableView.contentInset = UIEdgeInsetsMake(-18.0, 0.0, 0.0, 0.0)
对于 iOS 11,什么应该有效?
我尝试将第 0 部分从titleForHeaderInSection 设置为“nil”,并将第一部分的 heightForHeaderInSection 设置为“0”,但没有成功。
【问题讨论】:
-
尝试设置section header height = 0.1
-
你有多少个部分?
-
@AndreaMugnaini 3
-
self.tableView.tableHeaderView = UIView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 0.01))试试这个
标签: ios swift uitableview