How do i reload the whole table?
I have the content for the CollapsibleTableSectionViewController coming from an API and i have tried using several methods like the following:
DispatchQueue.main.async{
self.tableView.reloadData()
self.tableView.reloadSectionIndexTitles()
self.tableView.reloadSections(NSIndexSet(index: 1) as IndexSet, with: .automatic)
}
None of these methods calls the CollapsibleTableSectionDelegate methods to reload everything so how can i reload everything?
A hot fix would be to add the following to CollapsibleTableSectionViewController.swift.
open func reloadData() { _tableView.reloadData() }
From there, you can call it using
self.reloadData()
can you explain more ??
seriously, how's _tableView not exposed to deriving classes dude??
reloadData
I can't see reloadData function. Can you help?