如何关闭iOS设备 [英] How to power iOS device off

查看:85
本文介绍了如何关闭iOS设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是。我实际上认为我所要求的是不可能的,但我想知道你是否知道如何用快速或客观的c代码关闭iPhone,或者至少进入飞行模式。

Yes. I actually think that what I am asking is impossible but I'd like to know if you have any idea how to power the iPhone off with swift or objective c code, or at least enter the airplane mode.

推荐答案

您无法使用apple提供的公共API执行此操作。这可以使用未发布的私有API来完成。
但根据Apple的政策,使用任何私有API将导致App Store拒绝App。

You cannot do this with the Public APIs provided by apple. This may be done using the unreleased Private APIs. But According to Apple's policy, usage of any Private APIs will lead to rejection of App from App Store.

这篇关于如何关闭iOS设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆