开发者

How get get preferences from the iphone app to a server

Noobie Question. I am not after the code but rather the general process to get the preferences picked in my app are to be stored on a server.

1. how should I store this on the iphone (table ; array; dictionary or just 开发者_开发知识库various textboxes) and 2. What process to do I use to get them from the phone/app to the server. Cheers


You have lots of options available to you; here are two:

For a small number of preferences, you could encode them in a URL as parameters and pass them to your server by making a request using using NSURLConnection / NSURLRequest.

For more parameters, you could place them in a NSDictionary and use a JSON library to serialize them out as a string, which you could POST to your server.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜