UITableView space between row and sections

后端 未结 5 1318
野的像风
野的像风 2021-01-13 11:39

I want to make a UITableView as close to the iOS settings view as possible:

How do i create the space between different sections? What\'s the best way?

5条回答
  •  天涯浪人
    2021-01-13 12:33

    Just add the footer height in the table as required:

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

提交回复
热议问题