Activate airplane mode programmatically?

airplane-mode, iphone

Solution

It is not possible to do this with the public APIs, which means that Apple won't approve an app for the App Store that does this.

Of course, you generally shouldn't do this anyway. I'm curious to hear the reason you had in mind.

Problem

Does anyone know how to de/activate the airplane mode programmatically on the iPhone (OS 2.1)?

Original source