开发者

What's the suggested way to exchange structure data among iOS devices?

Take Purchase Order as an example. There is Purchase Order header and one or more rows of Purch开发者_运维问答ase Order details:

            +--- PO detail 1
            |
PO header --+--- PO detail 2
            | 
           ...
            | 
            +--- PO detail n

Assuem the POs are stored in a Core Data database. What's the suggested way to exchange some PO records among iOS devices, using the same app? I am thinking of packing the records in json format, zip and email to recipient(s). Is there any built-in mechanism in Core Data to serialize data in one device and de-serialize in another device? Thanks!


There is no built in API for translating the data. I recommend and use JSON as a transport format. I wrote a generic (and rough) recursive parser in answer to another StackOverflow question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜