This question already has an answer here:
- Activate airplane mode programmatically? 2 answers
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.
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.