ios - Getting unique value from core data -


i have 2 entities: schedule , user. schedule has relationship students, many 1 user (with inverse of studentschedule).

i have required schedule objects in array called results, want unique users students relationship.

i using:

nslog(@"%@", [results valueforkeypath:@"students"]); 

but not getting correct result think due to many relation. have idea this?

you want use collectionoperators.

nslog(@"%@", [results valueforkeypath:@"@distinctunionofobjects.students"]); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -