Help with CoreData making a NSPredicate - Recursive Searching

后端 未结 3 467
执念已碎
执念已碎 2020-12-21 13:28

I am using CoreData for an iPhone project and I am stuck trying to build a predicate.

My core data entity is

Folder 
   parent  - Point to the fol         


        
3条回答
  •  别那么骄傲
    2020-12-21 14:15

    How about going back up through the relationship:

    NSPredicate *pred = [NSPredicate predicateWithFormat:"parent.secure = %@", [NSNumber numberWithInteger:kNoSecurity]];
    

提交回复
热议问题