iPhone OS 4.0.x - transition from background to foreground

丶灬走出姿态 提交于 2019-12-04 07:14:42

问题


iPhone programming question:

Is it possible to wakeup/resume iPhone application from background mode to foreground mode programmatically?

I have a long-running background task, which is being launched in applicationDidEnterBackground method of UIApplicationDelegate.

I need to make my application active/visible using some code inside this background task.

Is this possible?

Thanks.


回答1:


This is not possible. However, you can fire a local notification to alert the user.



来源:https://stackoverflow.com/questions/3419559/iphone-os-4-0-x-transition-from-background-to-foreground

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!