问题
This is my API Fetch method where I am reloading my tableview.After reloading tableview does not render any cell.
```
API.shared.fetchAccomodations(completion: { (accResponse, error) in
if let err = error {
print("Failed to fetch accomodation Information ::" , err.localizedDescription)
}
if let response = accResponse {
self.accomodationsData = response
DispatchQueue.main.async {
self.accomodationsData = response
print(self.accomodationsData.count , self.accomodationsData)
self.tableView.reloadData()
}
}
}, tokenURL: accomodationsURL)
```
来源:https://stackoverflow.com/questions/61204574/i-am-reloading-my-tableview-after-fetching-data-from-api-and-after-reloading-tab