将iPhone应用程序(iOS SDK)连接到php / MySql后端的最佳方法是什么

问题描述:

这里的iPhone开发新手。只是想知道将iPhone应用程序前端(基于Cocoa)连接到基于php / MySql的后端的最佳方法是什么?

New to iPhone dev here. Just wondering what's the best way to connect an iPhone app frontend (based on Cocoa) to a php/MySql based backend?

iPhone应用程序将频繁访问和更改存储的数据在我们的服务器上。

The iPhone application will frequently access and change data stored on our server.

非常感谢

你需要创建一个Web服务,该服务将公开一组API,然后由iPhone应用程序使用这些API来推送/拉取数据。然后,您可以选择在sqlite3数据库中本地(在iPhone上)缓存数据。
最常见的数据传输格式是JSON和XML。

You will need to create a web service that will expose a set of APIs that are then use by your iPhone app to push/pull data. You may then choose to cache the data locally (on the iPhone) in a sqlite3 database. The most common data transfer formats are JSON and XML.