简体   繁体   English

越狱手机的背景iPhone应用程序

[英]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.

相关问题 在越狱的iPhone上杀死一个应用程序 - Killing an app on a jailbroken iPhone 为没有Cydia的越狱iPhone分发未签名的应用程序iPhone - Distribute unsigned app iPhone for jailbroken iPhone with no Cydia 如何在越狱的iPhone上测试iPhone应用程序? - How can I test an iPhone app on my iPhone that is Jailbroken? 试图在越狱的iphone上部署我的应用程序,但该应用程序立即关闭! - Attempting to deploy my app on my jailbroken iphone, but the app closes immediately! 无法在越狱的iPhone 4s 5.1.1上打开xcode 4.5.1应用 - cant open xcode 4.5.1 app on jailbroken iphone 4s 5.1.1 是否有任何“Hello world”教程,其中包含用于为越狱iPhone构建应用程序的XCode 4? - Is there any “Hello world” tutorial featuring XCode 4 for building app for jailbroken iPhone? 辞去Cydia应用程序以在非越狱iPhone上安装 - Resign Cydia App to Install on Non-Jailbroken iPhone 如何在越狱iPhone中使用命令shell卸载iOS应用程序 - How to uninstall iOS app using command shell in jailbroken iPhone 如何在越狱的iPhone上安装任意.app iPhone应用程序? - How do I install arbitrary .app iPhone applications to jailbroken iPhones? 在没有开发人员ID的越狱设备上部署iPhone应用程序的工作方法 - Working method to deploy iPhone app on jailbroken device without developer ID
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM