CloudKit not returning the most recent data

做~自己de王妃 提交于 2019-11-30 12:15:35

There is a delay between when a record is saved in CloudKit and when the indexes have been updated with values from that record.

When a CKModifyRecordsOperation completes successfully you are able to immediately fetch that record via its record identifier.

However, there is a delay while the record is added to the search indexes on the server and queries won't find that record immediately.

If you're using a CKQuery to back a view you'll want to keep a side table of records that have been modified locally and stitch those into the view until the query starts returning that record.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!