开发者

Background iPhone app for Jailbroken phones

开发者 https://www.devze.com 2023-01-17 18:13 出处:网络
I develop apps for jailbroken phones, and I need my app to be backgrounded and to be able to keep running as usual when backgro开发者_StackOverflowunded.

I develop apps for jailbroken phones, and I need my app to be backgrounded and to be able to keep running as usual when backgro开发者_StackOverflowunded. 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


Maybe you need to intercept the new methods triggering the quasi-backgrounding process set by Apple.

-(void)applicationWillResignActive

-(void)applicationDidEnterBackground

-(void)applicatonWillEnterForeground

-(void)applicationDidBecomeActive

0

精彩评论

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

关注公众号