How to power iOS device off [duplicate]

2019-03-03 11:32发布

This question already has an answer here:

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条回答
孤傲高冷的网名
2楼-- · 2019-03-03 11:52

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.

查看更多
登录 后发表回答