UITableview 中各部分之间的空间 [英] Space Between Sections in UITableview

查看:33
本文介绍了UITableview 中各部分之间的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要减少UITableView 的两个部分之间的空间.我看了这个问题,但解决方案不允许对于我的自定义页眉视图,因为它结合了页脚和页眉的空间.

I need to reduce the space between two sections ofUITableView. I looked at this question but the solution doesn't allow for my custom header view because it combines the space of the footer and header.

这是UITableView 的图片.黑色是 UITableView 的背景色.

Here is a picture of the UITableView. The black color is the UITableView background color.

推荐答案

您是否尝试覆盖此功能:

Did you try override this function:

override func tableView(tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return .leastNormalMagnitude
}

这篇关于UITableview 中各部分之间的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆