ios - Unable to query for Users CKRecords -
with query on public database:
let pred = nspredicate(format: "family == %@", ref) let query = ckquery(recordtype: "users", predicate: pred)
i no results, though have reference association on 2 users
records.
even if try:
let pred = nspredicate(format: "truepredicate") let query = ckquery(recordtype: "users", predicate: pred)
which should return users
records, nothing. though i’d understand apple might not want latter, case cannot query specific users well?
i have scoured documentation, it's little lacking , cannot find conditionals this. users
special recordtype, perhaps answer "no cannot query users".
thanks.
user records explicitly not queryable. must use ckdiscoveruserinfosoperation
, ckdiscoverallcontactsoperation
, -[ckcontainer discoveruserinfo...]
or -[ckcontainer discoverallcontactuserinfoswithcompletionhandler]
find user record.
if need query on attribute of user you'll need create new record type , store property in there. can use creatoruserrecordid
on custom record associate value user.
Comments
Post a Comment