How should beginbackgroundtaskwithexpirationhandler: be dealt with for an NSUrlConnection that is already in progress?

后端 未结 1 1120
你的背包
你的背包 2021-01-13 20:40

If the application uses NSURLConnection to start a download while the app is in the foreground, but then the app moves to the background before the data has finished downloa

相关标签:
1条回答
  • 2021-01-13 21:00

    You need to start it as a background task for task that you wish to continue in background even if that task is in foreground beginning with. Check out the section "beyond the basics" in this Apple doc: https://developer.apple.com/library/ios/ipad/#technotes/tn2277/_index.html

    0 讨论(0)
提交回复
热议问题