6
私は次のsubpredicatesと複合述語を設定したい:組み合わせる+ andPredicateWithSubpredicates:と+ orPredicateWithSubpredicates:1つの述語で
- ID(ANDタイプ)
- ファーストネーム(ORタイプ)
- 姓(ORタイプ)
- middlename(ORタイプ)
私はNSCompoundPredicate documentationを読んでいますが、enoug明確で理解していませんh - + andPredicateWithSubpredicates:
と+ orPredicateWithSubpredicates:
の両方を1つのフェッチ要求で1つの述語として組み合わせることは可能ですか?
あなたは 'NSPredicate * finalPredicate = [NSCompoundPredicate andPredicateWithSubpredicatesに第二と第三の工程を組み合わせることができます、第3述語、第4述語]] '。 –