ios-swift-collapsible-table-section icon indicating copy to clipboard operation
ios-swift-collapsible-table-section copied to clipboard

How to reloadData after fetching info from API?

Open smarques84 opened this issue 6 years ago • 2 comments

Hi there

I tried using reloadData() with collapsible table view, but it doesn't work which method should i use?

Best Regards

smarques84 avatar Sep 08 '17 17:09 smarques84

I think u should use self.tableView.reloadData()...Because their is no IBOutlet we created for tableview

dilipiOSDeveloper avatar May 23 '18 13:05 dilipiOSDeveloper

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() }

WalidDev1 avatar Mar 13 '19 16:03 WalidDev1