版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yyyyccll/article/details/90935342
tableview 设置为grouped类型时,默认的header和footer高度 去掉方法:
自定义header和footer,且高度设为0.01
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return nil
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 0.01
}