从后台恢复应用程序时删除核心数据对象

时间:2017-04-26 10:18:35

标签: ios xcode core-data

检索具有核心数据关系的对象时,返回如下值:

<Item: 0x608000ac6190> (entity: Item; id: 0xd00000009704000c <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Item/p9665> ; data: {
    attrNotes = "";
    attributeList =     (
        "0xd000000855a0000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136552>",
        "0xd000000855c4000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136561>",
        "0xd00000085444000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136465>",
        "0xd0000008554c000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136531>",
        "0xd000000854f4000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136509>",
        "0xd0000008552c000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136523>",
        "0xd00000085578000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136542>",
        "0xd00000085540000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136528>",
        "0xd00000085624000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136585>",
        "0xd0000008551c000a <x-coredata://4453E4EF-92A7-4BB3-8062-2515ACA2DC76/Attribute/p136519>",
        "(...and 1 more...)"
    );
    itemAvailabilityTemp = 1;
    itemId = 655;
})

但是在从后台恢复App后,“attributeList”的值变为空。

你能帮我解决这个问题吗?

0 个答案:

没有答案