vendredi 5 décembre 2014

Unable to query for Users CKRecords


Vote count:

0




With this query on the public database:



let pred = NSPredicate(format: "family == %@", ref)
let query = CKQuery(recordType: "Users", predicate: pred)


I get no results, even though I have this reference association on two Users records.


Even if I try:



let pred = NSPredicate(format: "TRUEPREDICATE")
let query = CKQuery(recordType: "Users", predicate: pred)


Which should return all Users records, I get nothing. Though I’d understand that Apple might not want the latter, is it also the case that I cannot query for specific Users as well?


I have scoured the documentation, but it's a little lacking currently and cannot find any conditionals about this. Users is a special recordType, so perhaps the answer is simply "No you cannot query for Users".


Thanks.



asked 1 min ago

mxcl

6,634






Unable to query for Users CKRecords

Aucun commentaire:

Enregistrer un commentaire