Using NSFetchedResultsController
delegate method controller
(_:didChange: at:for:newIndexPath:)
, between tableView.beginUpdates()
in controllerWillChangeContent(_:)
and tableView.endUpdates()
in controllerDidChangeContent(_:)
, results in objects with nil properties (including the uniqueIdentifier, which is normally set in awakeFromInsert())
being created when merging changes from different devices, and related crash. The problem doesn't occur when only the controllerDidChangeContent(_:)
delegate method with tableView.reloadData()
is implemented instead.
Any advice on how to eliminate this problem would be appreciated.