IOS Master Data - Relationships

I guess this is the main question, and hopefully someone can point me in the right direction to some sample code, so my question is ....

I want / created a basic data model that has a parent child relationship, from one to many, what I would like to know is the right way to insert child records if the parent already exists. What I'm trying to understand is how parent relationships are created when inserting child records.

Hope this makes sense, thanks for any help.

+5
source share
2 answers

Here you have a series of three guides: RayWenderlich: Basic Data Tutorial

: iPhoneCoreDataRecipes

-

, . Core Data, , , , .

EDIT: :

+14

, . Parent *, Parent NSSet *. , Datamodel, , Child.

,

+3

All Articles