以编程方式关闭 iOS
是否可以使用 Objective c 关闭 iOS 设备(iPhone、iPad、iPod)?我在互联网上搜索了一遍又一遍,但什么也没有出现。我只是在想,你对设备到底有多少控制权。有谁知道这是否可能?如果是这样,怎么办?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,在非“越狱”状态下是不可能的。您的应用程序无法逃脱它自己的“沙箱”,因此无法访问可用于控制设备电源状态的系统调用。
不仅如此,App Store 批准此功能的机会也微乎其微。
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.
不,这在未越狱的设备上是不可能的。操作系统保持对大多数系统范围功能的控制,并且禁止访问许多东西,例如电源。
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.