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

查看:97
本文介绍了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 0.00001
  }

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

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