1
Я пытаюсь добавить пространство между динамическими ячейками.Добавление пространства между tableviewcell в Swift
Это мой код. Я не понимал, почему он не работает.
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
}
Возможная Дубликат [расстояния между UITableViewCells] (http://stackoverflow.com/questions/28598830/spacing-between-uitableviewcells) –