0

我想在 iPhone 上的 MySQL WebServer 和移动数据库核心数据之间同步数据。在我的上一个项目中,我编写了 php 文件,这些文件使用 MySQL 数据的内容创建 XML 文件。iOS 项目解析 XML 文件以同步数据。为了将数据从 iPhone 传输到 MySQL 服务器,我编写了第二个 php 文件。这将连接到 MySQL 数据库并执行语句。

您认为在 iOS 应用程序和 MySQL Web 服务器之间同步数据的好方法是什么?你有什么想法让它变得更好吗?

4

1 回答 1

0

This seems to be a good plan. If you follow the plist specifications or use JSON you can convert the data even more easily (without NSXMLParser) into your custom classes and insert them into the Core Data store.

Make sure to devise a scheme where you only have to send/receive incremental changes.

于 2013-11-01T15:52:35.253 回答