将iPhone应用程序(iOS SDK)连接到php / MySql后端的最佳方法是什么 [英] What's the best way to connect iPhone app (iOS SDK) to php/MySql backend

查看:83
本文介绍了将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.

这篇关于将iPhone应用程序(iOS SDK)连接到php / MySql后端的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆