I am trying to fill my UITableView with some data I receive from a GET request. I don\'t know why but if in my numberOfRowsInSection, I return an s
UITableView
numberOfRowsInSection
Swift solution:
tableView.reloadData()
If you are calling it not from the main thread:
DispatchQueue.main.async { self.tableView.reloadData() }
You must reload table view data after receiving request with
[self.tableView reloadData];