简体   繁体   English

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

[英]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.

相关问题 从iPhone应用程序-> PHP-> MySQL保护用户密码的最佳方法是什么? - What is the best way to go about protecting a user's password going from iPhone app -> PHP -> MySQL? 使用PHP将iOS客户端连接到MySql数据库的最佳方法是什么? - what is the best way to connect an iOS client to a MySql database using PHP? 将Android应用程序连接到MySQL的最佳方法是什么? - What's the best way to connect an Android App to MySQL? 在Android上向PHP / MySQL后端发送和检索(可能是大量)数据的最佳方法是什么? - What's the best way to send and retrieve (possibly large amounts) data to a PHP/MySQL backend on Android? 使用PHP连接和查询MySQL数据库的最佳方法是什么? - What is the best way to connect to and query a MySQL database using PHP? 从PHP获取数据到iOS应用程序的最佳方法是什么? - What's the best way to get data from PHP to an iOS-app? 在此PHP应用程序中实现用户首选项的最佳方法是什么? - What's the best way to implement user's preferences in this PHP app? 在php / mysql中搜索拼写错误的最佳方法是什么? - What's the best way to implement typo correction into a search in php/mysql? 使用PHP搜索MySQL数据库的最佳方法是什么? - What's the best way to search a MySQL database with PHP? 什么是编写php mysql打开和关闭连接的最佳方式 - what's the best way writing php mysql open and close connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM