开发者

import/export data from iphone

Hi guys i am making an application for iPhone that will allow user to access server and pull data thorught NSUrl request and store it in phone memory. Then user won't be able to access the internet( may be somewhere out where there is no internet connection) and when he comes back in the coverage will be able to submit the store data back to server.( user has made some change while he was away and didn't had any inter开发者_运维技巧net connection) all the time.

So what will be the best way to do it?


The easiest way would be to use a HTTP connection you mentioned. While the user is offline, you can store the data using Core Data. When the user is back you send a HTTP POST/PUT request to upload the data back to the server.

For easy HTTP requests on the iPhone use ASIHTTPRequest.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜