mysql - 将 iPhone 应用程序连接到远程数据库服务器

标签 mysql ios ios6

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

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

阅读有关 mysql 框架和 MCPKit 框架的信息,但这些是针对 cocoa 的,而不是针对 cocoa touch 的。

那么我可以在服务器端没有任何网络服务的情况下访问基于 mysql 的后端吗?

非常感谢

最佳答案

您可以为您的 PHP/mySQL 创建一个 REST Api。像这样

https://github.com/gilbitron/Arrest-MySQL

然后在 iOS 方面,您可以使用 AFNetworking 之类的东西向您的服务器发出请求。

https://github.com/AFNetworking/AFNetworking

关于mysql - 将 iPhone 应用程序连接到远程数据库服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17467564/

相关文章:

php - 如何在数据库中安全保存 Html 格式的文本? PHP-MySQL

mysql - 根据其他字段中的值将一个字段拆分为多列

mysql - 有没有办法使用 logstash 连接两个不同数据源(即 Mysql 和 Postgres SQL)的数据库并将其索引到 Elasticsearch ?

ios - Swift/XCode 与 Kingfisher - 无法从 Web 加载图像

iphone - 如何在不检查操作系统版本的情况下检测 iOS 上的 YouTube 应用程序(或缺少该应用程序)?

ios - 防止在 iOS 6 上旋转 ABPerson ViewController 和 ABNewPerson ViewController

mysql - ER_ACCESS_DENIED_ERROR : Access denied for user '' @'localhost' (using password: NO)

ios - 带有 URL 的 NSURLSession downloadTask 返回 nil

ios - UICollectionViewCell 在设备旋转时调整大小

iphone - Tableview 自身和 Viewcontroller [多个 Segues]