使用AND的简单谓词

时间:2015-12-31 17:01:40

标签: ios swift cloudkit

let predicate1 = NSPredicate(format:"(a = %@) AND (b = %@)  AND (c = %@) AND (d = %@) AND (e = %@)", a1, a2, a3 ,a4 ,a5)

let query = CKQuery(recordType: "MyStuff", predicate: predicate1)

以上行不起作用,我们是否允许在CloudKit上使用超过1值的谓词?这似乎只适用于第一个变量 - a = %@

0 个答案:

没有答案