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

后端 未结 5 1218
南旧
南旧 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:00

    I'd definitely suggest a second thread for any long running process which need to run whilst the user is doing something else.

    Another thing you will need to think about is what is going to happen if the user starts the process and then hits the home button. How will the server interaction be effected by being interrupted? Can it continue when the user next enters the app? etc.

提交回复
热议问题