开发者

Prevent Application Shutdown iPhone

开发者 https://www.devze.com 2023-01-01 08:56 出处:网络
I\'m building a little dialing program for my kids so that only 4 \"safe\" numbers are available for them to dial. I\'d like to start the app, hand them the phone and have the app be the only thing ru

I'm building a little dialing program for my kids so that only 4 "safe" numbers are available for them to dial. I'd like to start the app, hand them the phone and have the app be the only thing running until they come back home.

Is there a way to keep the application running and prevent the iP开发者_Python百科hone from shutting down the app?


The iPhone SDK does not allow this. Any application can be exited when the user presses the home button. In fact if your program takes too long to exit (e.g. infinite loop) it will forcefully close your application.

If you must have this behavior, your best bet would be to jailbreak the phone in which case anything could pretty much be done.


Not with Apple's SDK, no.

0

精彩评论

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