有什么方法可以重启iPhone?
有什么方法可以在通话时重新启动 iPhone?它可能是一个未记录的方法(并且可能最终会成为这样,因为我在 iPhone SDK 参考中找不到类似的方法)。
Is there any method that will restart the iPhone on call? It can be an undocumented method (and probably will end up being since I can not find a method like it in the iPhone SDK reference).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,抱歉,目前没有可以执行此操作的功能,官方 SDK 中也不会有此功能。
No, sorry, there isn't a function to do this currently, and there won't be any in the offical SDK.
据我所知,实际上在任何库(私有或非私有)中都没有重新启动设备的例程。也就是说,如果您可以调用内核,那么您肯定可以做到。
当然请记住,做这种事情违反了可用性准则。根据我回答的您之前的问题,您的目标不是应用程序商店,因此它可能永远不会成为问题;但仍然。如果您必须重新启动手机,那么很有可能您所做的任何事情都可以通过不同的方式完成。
There is actually no routine, that I know of in any of the libraries (private or not) to restart the device. That said, if you can call into the kernel you can for sure do it.
Keep in mind of course, that it goes against usability guidelines to be doing this sort of thing. Based on your previous question I answered, you aren't targeting the app store so it's likely never going to be an issue; but still. If you have to reboot the phone, there's a good chance that whatever you're doing to require that, can be done a different way.