Updates to NSDictionary attribute in CoreData not saving

前端 未结 2 727
星月不相逢
星月不相逢 2021-01-01 06:33

I have created an Entity in CoreData that includes a Transformable attribute type implemented as an NSDictionary. The NSDictionary attribute only contains values of a custo

2条回答
  •  隐瞒了意图╮
    2021-01-01 07:15

    I ran into the same problem and ended up switching to NSDictionary as transformable attribute instead of NSMutableDictionary. Just fetch the NSDictionary as mutableCopy, work on that, put the end result into an NSDictionary and reinsert that into the managedObject. Did the trick for me and i havent found another solution yet.

提交回复
热议问题