核心数据同步 [英] Core Data syncing
问题描述
有没有办法自动同步我的核心数据模型与服务器(最好是REST)?
is there a way to automatically sync my Core Data Model with a server (preferably REST)?
感谢
推荐答案
Apple已经共享了他们的同步服务框架,文档如下:
Apple has shared their Sync Services Framework it is documented here:
http://developer.apple.com/documentation/Cocoa/Conceptual/SyncServices/SyncServices.html
此部分特别与同步托管对象相关:
This section is specifically related to syncing managed objects:
至于使用哪种样式的资料传输,
As for which style of data transfer is used, I'm not sure if it using REST, I don't see it immediately obvious.
通常,传输到和来自REST服务的数据不包括大型二进制对象或复杂数据结构。如果REST是一个需求,你可能需要做一些自定义,但搜索可用的文档,你可能会找到你要找的一切。
Typically the data transferred to and from REST services doesn't include large binary objects or complex data structures. If REST is a requirement you may need to do something custom, but search through the available documentation you might find everything you are looking for.
这篇关于核心数据同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!