简体   繁体   English

如何从我的iOS应用程序将阵列远程存储到数据库

[英]How to store an array remotely to a db from my iOS app

I need to store an array remotely from my app then retrieve it whenever i need it. 我需要从我的应用程序远程存储一个数组,然后在需要时检索它。 Also i need to sort this array for getting datas in a chronological order. 我还需要对这个数组进行排序,以便按时间顺序获取数据。 I have never done this before can anyone tell me how to do this 我从未做过此事,谁能告诉我该怎么做

DB is remote ? DB是远程的吗? If YES you should create API interface to the remote DB and then use this API in your iOS app to interact with DB. 如果是,则应创建到远程数据库的API接口,然后在iOS应用中使用此API与数据库进行交互。 Good article to explain how to create simple API and use it in the iOS application is here: 好的文章介绍了如何创建简单的API并在iOS应用程序中使用它:

http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app http://www.raywenderlich.com/30445/afnetworking-crash-course http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app http://www.raywenderlich.com/30445/afnetworking-crash -课程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM