开发者

Continue task execution in background

开发者 https://www.devze.com 2023-01-06 19:43 出处:网络
Am I missing something here with Multitasking feature. I know we can execute a task in background, but what I really need is that task continues execution when app goes in background. So what I need i

Am I missing something here with Multitasking feature. I know we can execute a task in background, but what I really need is that task continues execution when app goes in background. So what I need is different than starting a new task in background. If images are being loaded in a view and user presses the home button to make the app go in background, I want that images continue to load and when user makes the app active again, he can see all the loaded images. How开发者_如何转开发 can this be done? Thanks a lot.


Documentation on background task execution is on Apple's site in the iPhone Application Programming Guide.


According to mentioned documentation, if you use beginBackgroundTaskWithExpirationHandler: while in foreground, it will keep executing in background until it ends. Once that task has ended, your application is eligible to be suspended.

0

精彩评论

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