How to power iOS device off [duplicate]

守給你的承諾、 提交于 2019-12-31 05:10:31

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29079257/how-to-power-ios-device-off

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