Hello from Barcelona!
following the Core Data tutorial (and Collection Views), I have a problem when I try to delete…
In this code, Swift compiler gives me this error: “Cannot convert value of type ‘[IndexPath]?’ to expected argument type ‘IndexPath’”
let indexPath = myCollectionView.indexPathsForSelectedItems
let bullet = fetchedRC.object(at: indexPath) <<<<<<< IN THIS POINT!
context.delete(bulletRaw)
appDelegate.saveContext()
Do you know what happens?
Thank you very much!
best regards.
Miquel