【发布时间】:2016-01-19 14:20:24
【问题描述】:
我正在尝试在动态单元格之间添加空间。
这是我的代码。我不明白为什么它不起作用。
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 50
}
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footer = UIView()
footer.backgroundColor = UIColor.clearColor()
return footer
}
【问题讨论】:
标签: ios swift uitableview