美文网首页
iOS:grouped类型的UITableView消除多余的间距

iOS:grouped类型的UITableView消除多余的间距

作者: 火山脚下 | 来源:发表于2021-05-10 16:06 被阅读0次

tableView.estimatedSectionHeaderHeight = 0
tableView.estimatedSectionFooterHeight = 0

func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return 0.01
 }
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
        return 0.01
}

相关文章

网友评论

      本文标题:iOS:grouped类型的UITableView消除多余的间距

      本文链接:https://www.haomeiwen.com/subject/gzyidltx.html