开发者

Submit and download data to a website from iOS

So in my app, I want my users to be able to fill out some information and have it uploaded to me website/server. The user can upload their info and look at other peoples info. I would like to keep the list of people in an array so I can fill a UITableView with the list of people's names. The basic information is just text and I can put that i开发者_StackOverflow社区nto an array or dictionary or something. But then how should I get it on my website.

Then, how do I download that data and more from the website.

my website is through Yahoo small business and I have written plists and uploaded them in the file manager and then read the arrays from there.

Thanks in advance.


You should create a basic http form which can returns data as JSON or everything else.

And to interact with it, use the ASI-HTTP-Request library, you'll be able to submit a form with POST data (for example) and to get returned data like a JSON array.


There are many ways you can approach this. The simplest might be just creating a server side service where you POST some JSON with the data you wish to store on the server. You could implement a similar service for downloading the same data from your site.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜