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 to reloadData after fetching info from API? #29

Open
smarques84 opened this issue Sep 8, 2017 · 2 comments
Open

How to reloadData after fetching info from API? #29

smarques84 opened this issue Sep 8, 2017 · 2 comments

Comments

@smarques84
Copy link

Hi there

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

Best Regards

@dilipiOSDeveloper
Copy link

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

@WalidDev1
Copy link

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

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

3 participants