Swift - Reload UITableView Header

11,682

Solution 1

Use this method to reload section. Add index set of section which you want to reload.

tableView.reloadSections(IndexSet(0..<1), with: .automatic)

Solution 2

There is no standard method to do that, you can use tableView:viewForHeaderInSection: function to get the section header from UITableView and do the updates.

Share:
11,682
GayashanK
Author by

GayashanK

Software Engineer at Bhasha Lanka Pvt Ltd. Find me on : Email - [email protected] LinkedIn || Facebook || GitHub || Blogger

Updated on June 09, 2022

Comments

  • GayashanK
    GayashanK almost 2 years

    I'm try to reload only UITableView section header without reloading whole section or reload whole table. Thanks in advance.

    note :- I follow answers of already answered question. But I still cannot figure out this.