开发者

How can I reboot the iPhone programmatically from within my application?

Is there any way to trigger a reboot of the iPhone p开发者_C百科rogrammatically from within your application, either using public or private API?


The problem is, u cant reboot the phone without user's confirmation. Apple wont allow you to reboot iphone without user knowing it. This is something which violates Apple's terms.

For rebooting the device, u need to execute a file present in the iphone. This will do the trick. Now comes the hard part, the name and path to the file is something for u to figure out.

HAppy programming!

EMX Dev


There is private API for this, but Apple would never approve your app on the AppStore.


If you jailbreak your iPhone, you can download Terminal and issue the reboot command.


I answered this similar question with a technique that works (jailbroken phones) as long as you make your package depend on SBSettings:

iphone reboot programmatically


No, there is no legal way. Mostly because of security reasons. What happens if they allow and somebody trying to write some virus. But illegally, yes, it can, Cydia can do that so we can technically do that

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜