0

这是我的 API Fetch 方法,我正在重新加载我的 tableview。重新加载 tableview 后不会呈现任何单元格。

           ```
          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)
       ```
4

0 回答 0