ios - In CloudKit, after adding a record, the new record will not appear in a query that is conducted right away. How to solve it? -
i developing ios app using cloudkit. have problem: after adding record using ckmodifyrecordsoperation
, if query right away using ckqueryoperation
records, newest record doesn't appear in query result. seems newest record appear in queries conducted several seconds after writing operation. so, how solve it?
in app, when user add new record, app refresh list of records. in cases, list not have new record. after user refresh list later, record appear.
get number of records before update
then in code update, @ end of update, count of records. if count same count before update made, "wait" (swift has wait function) there till count 1 more preupdate count
Comments
Post a Comment