How to scroll the header along with the UITableView?

前端 未结 6 1870
一整个雨季
一整个雨季 2021-02-02 07:07

I have a UITableView with a header. the problem I currently have is that the header doesn\'t scroll with the table. I need it to scroll off screen (above) when the

6条回答
  •  广开言路
    2021-02-02 08:03

    If you have a single header in the table then you can use tableHeaderView as below:

    tableView.tableHeaderView = Header;
    

    Or if you have multiple header in table than you need to use Group table instead of plain table.

    Thanks

提交回复
热议问题