[英]What's the best way to connect iPhone app (iOS SDK) to php/MySql backend
New to iPhone dev here. iPhone开发人员的新功能在这里。 Just wondering what's the best way to connect an iPhone app frontend (based on Cocoa) to a php/MySql based backend?
只是想知道将iPhone应用程序前端(基于Cocoa)连接到基于php / MySql的后端的最佳方法是什么?
The iPhone application will frequently access and change data stored on our server. iPhone应用程序将经常访问和更改存储在我们服务器上的数据。
Many thanks 非常感谢
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. 您将需要创建一个Web服务,该服务将公开一组API,然后您的iPhone应用程序将这些API用于推/拉数据。 You may then choose to cache the data locally (on the iPhone) in a sqlite3 database.
然后,您可以选择将数据本地(在iPhone上)缓存在sqlite3数据库中。 The most common data transfer formats are JSON and XML.
最常见的数据传输格式是JSON和XML。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.