我有以下代码:
let pred = NSPredicate(format: "content IN %@ AND (tallied == 0 OR comment != '')", arr)
let query = CKQuery(recordType: "Rating", predicate: pred)
由于未捕获的异常'CKException'而引发终止应用程序,原因:'意外表达式:计数 == 0 或评论!=“”'
但是当我尝试
"content IN %@ AND (tallied == 0)"
它工作正常,与
"content IN %@ AND (comment != '')"
但我需要能够查询所有记录 == 0 或评论!= ''。我该如何构建这个?