Best practice to send a lot of data in background on iOS4 device?

后端 未结 5 1205
南旧
南旧 2020-12-12 23:55

I have an app that needs to send data (using POST) to a server. This function has to be on one of the NavigationController sub-controllers and user should be able to navigat

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 00:11

    Use ASIHTTP and setup a Queue. All the information you need can be found here:

    http://allseeing-i.com/ASIHTTPRequest/

    This is the easiest way to accomplish what you want to accomplish. For sending lots of data, it is better to send in the background to keep the UI responsive. ASIHTTPRequest provides all the methods you need to kick of multiple queries (i.e. progress checks, callbacks, etc).

    It's used by tons of great iPhone apps.

提交回复
热议问题