Core Data could not fulfill fault for object after obtainPermanentIDs

后端 未结 2 732
轮回少年
轮回少年 2020-12-05 15:29

I\'m getting data from a webserver, processing it on a child private background context called backgroundMOC. It is a child of a mainMOC which is l

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 16:07

    I had experienced a variety of frustrations with Core Data when working between foreground and background threads. In searching for a resolution for one of my issues I ran across

    Magical Record

    I spent a bit of time going through documentation and the methods and I can say it has really made working with Core Data much easier. Specifically it will also help manage multiple contexts and threads for you.

    You might want to check it out.

提交回复
热议问题