shutdown iOS programmatically

给你一囗甜甜゛ 提交于 2020-01-04 06:09:12

问题


Is it possible to shutdown an iOS device (iPhone, iPad, iPod) with objective c? I have searched the internet through and through, and nothing at all has come up. I was just thinking about it, how much control over the device you really have. Does anyone know if this is possible? If so, how?


回答1:


No, it's not possible in a non-"jailbroken" state. Your app cannot escape it's own "sandbox" and consequently has no access to system calls that could be used to control the power state of the device.

Not only that, but App Store approval chances for this feature would be slim to none.




回答2:


No, this is not possible on a non-jailbroken device. The operating system maintains control over most of the system-wide functions and access to many things, like power, are prohibited.



来源:https://stackoverflow.com/questions/7563687/shutdown-ios-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!