有什么方法可以重启iPhone?

发布于 2024-09-03 01:53:56 字数 84 浏览 3 评论 0原文

有什么方法可以在通话时重新启动 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心是晴朗的。 2024-09-10 01:53:56

不,抱歉,目前没有可以执行此操作的功能,官方 SDK 中也不会有此功能。

No, sorry, there isn't a function to do this currently, and there won't be any in the offical SDK.

依 靠 2024-09-10 01:53:56

据我所知,实际上在任何库(私有或非私有)中都没有重新启动设备的例程。也就是说,如果您可以调用内核,那么您肯定可以做到。

当然请记住,做这种事情违反了可用性准则。根据我回答的您之前的问题,您的目标不是应用程序商店,因此它可能永远不会成为问题;但仍然。如果您必须重新启动手机,那么很有可能您所做的任何事情都可以通过不同的方式完成。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文