0
我有以下代碼,我從Core Data棧獲取fetchedObjects。我如何訪問這些元素?它會拋出一個錯誤,說我需要一個IndexPath?無法將Int類型的值轉換爲期望的參數類型IndexPath(Core Data)?
func loadDataToMapView() {
guard let mapCoordinates = fetchedResultsControllerForCoordinateEntity.fetchedObjects else { return 0 }
let coordinate2 = fetchedResultsControllerForCoordinateEntity.object(at: 1)
print(coordinate2)
得到它的感謝! – konyv12