Core Data viewContext not receiving updates from newBackgroundContext() with NSFetchedResultsController

后端 未结 4 2028
一生所求
一生所求 2021-01-30 16:59

In my application, I have a NSFetchedResultsController to load Core Data objects in a UITableView. The fetch request associated with this FRC uses the new vie

4条回答
  •  终归单人心
    2021-01-30 17:47

    Automatically merge changes from parent needs to set on the viewContext like this:

    persistentContainer.viewContext.automaticallyMergesChangesFromParent = true
    

提交回复
热议问题