Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i reload the whole table? #50

Open
smarques84 opened this issue Sep 4, 2017 · 4 comments
Open

How do i reload the whole table? #50

smarques84 opened this issue Sep 4, 2017 · 4 comments

Comments

@smarques84
Copy link

smarques84 commented Sep 4, 2017

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?

@jerherrero
Copy link

jerherrero commented Apr 4, 2018

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

@mohmando
Copy link

can you explain more ??

@galblank
Copy link

seriously, how's _tableView not exposed to deriving classes dude??

@bayfatih2000
Copy link

reloadData

I can't see reloadData function. Can you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants