How to scroll the header along with the UITableView?

前端 未结 6 2049
一整个雨季
一整个雨季 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 07:52

    create sectionHeader view in a new method and then add to the end:

    self.tableView.tableHeaderView = sectionHeader;
    

提交回复
热议问题