[英]Background iPhone app for Jailbroken phones
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. 在iOS3.0上,我只是在applicationWillTerminate阻塞线程,就是这样。 But it seems that the fast app switching method in 4.0 is disabling applicationWillTerminate, so I can't use that anymore. 但是似乎4.0中的快速应用程序切换方法正在禁用applicationWillTerminate,因此我不能再使用它了。 I've tried overriding applicationSuspend by calling it, but that doesn't appear to work either. 我试图通过调用它来覆盖applicationSuspend,但这似乎也不起作用。 Do you guys have any idea how to do this? 你们有什么想法吗? Thanks 谢谢
Maybe you need to intercept the new methods triggering the quasi-backgrounding process set by Apple. 也许您需要拦截触发Apple设置的准背景过程的新方法。
-(void)applicationWillResignActive -(无效)applicationWillResignActive
-(void)applicationDidEnterBackground -(无效)applicationDidEnterBackground
-(void)applicatonWillEnterForeground -(void)applicatonWillEnterForeground
-(void)applicationDidBecomeActive -(无效)applicationDidBecomeActive
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.