How to change height of grouped UITableView header?

前端 未结 10 725
野性不改
野性不改 2020-12-07 09:22

I know how to change the height of the section headers in the table view. But I am unable to find any solution to change the default spacing before the first section.

10条回答
  •  臣服心动
    2020-12-07 10:17

    In swift 2.0

    func tableView(tableView: UITableView, estimatedHeightForHeaderInSection section: Int) -> CGFloat {
    
            return yourHeight
        }
    

提交回复
热议问题