ios-swift-collapsible-table-section
ios-swift-collapsible-table-section copied to clipboard
How to reloadData after fetching info from API?
Hi there
I tried using reloadData() with collapsible table view, but it doesn't work which method should i use?
Best Regards
I think u should use self.tableView.reloadData()...Because their is no IBOutlet we created for tableview
before the OnSucces for your api add this code when all of the variable is ok = DispatchQueue.main.async { self.sections = self.sectionsData1 self.tableView.reloadData() }