绝大部分是没有实现一下方法
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
return nil
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 0.01
}
即使返回的header是nil不可以设置height为0,否则还会出现空白