CloudKit - What to do when a user adds, modifies or deletes an object while offline?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 06:38:06

What about a separate database table (i.e. Core Data Entity) for queued changes?

You could have separate ones for each action (as you describe), or else have a single property (such as 'action') on the queued change entity object. Then you could either try regularly, you could check for connectivity before trying to sync the changes, and yes, as you said, iterate over them and clear them on success.

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