ios - Am I able to use recordID.recordName in a CKQuery? -
ckquery
doc says: key names used in predicates correspond fields in evaluated record. key names may include names of record’s metadata properties such "creationdate” or info fields added record.
what else metadata can utilize in ckquery
? able utilize record.recordid.recordname
, if yes, key
it?
yes, create ckquery searching recordid this:
var query = ckquery(recordtype: recordtype, predicate: nspredicate(format: "%k == %@", "creatoruserrecordid" ,ckreference(recordid: thesearchrecordid, action: ckreferenceaction.none)))
where thesearchrecordid recordid.recordname looking for
metadata fields recordid, recordtype, creationdate, creatoruserrecordid, modificationdate, lastmodifieduserrecordid, recordchangetag
see https://developer.apple.com/library/ios/documentation/cloudkit/reference/ckrecord_class/index.html#//apple_ref/doc/uid/tp40014044-ch1-sw14
ios cloudkit ckquery ckrecord
No comments:
Post a Comment