适用于越狱手机的后台 iPhone 应用程序
我为越狱手机开发应用程序,我需要我的应用程序在后台运行,并且能够在后台运行时照常运行。 在 iOS3.0 上,我只是在 applicationWillTerminate 处阻塞线程,仅此而已。但4.0中的快速应用程序切换方法似乎禁用了applicationWillTerminate,所以我不能再使用它了。 我尝试通过调用来覆盖 applicationSuspend ,但这似乎也不起作用。 你们知道如何做到这一点吗? 谢谢
I develop apps for jailbroken phones, and I need my app to be backgrounded and to be able to keep running as usual when backgrounded.
On iOS3.0, I would just block the thread at applicationWillTerminate, and that'd be it. But it seems that the fast app switching method in 4.0 is disabling applicationWillTerminate, so I can't use that anymore.
I've tried overriding applicationSuspend by calling it, but that doesn't appear to work either.
Do you guys have any idea how to do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许你需要拦截触发Apple设置的准后台进程的新方法。
-(void)applicationWillResignActive
-(void)applicationDidEnterBackground
-(void)applicationWillEnterForeground
-(void)applicationDidBecomeActive
Maybe you need to intercept the new methods triggering the quasi-backgrounding process set by Apple.
-(void)applicationWillResignActive
-(void)applicationDidEnterBackground
-(void)applicatonWillEnterForeground
-(void)applicationDidBecomeActive