Exception thrown in NSOrderedSet generated accessors

后端 未结 25 2549
天涯浪人
天涯浪人 2020-11-22 09:07

On my Lion app, I have this data model:

\"enter

The relationship subitem

25条回答
  •  难免孤独
    2020-11-22 09:38

    It seems that if you link the parent with the child by setting the parent to the child and not the other way around it works without crashing.

    So if you do:

    [child setParent:parent]
    

    instead of

    [parent setChildObects:child]
    

    It should work, at least it works on iOS 7 and didn't had any problems with the relationship.

提交回复
热议问题