Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Open Settings, and turn Airplane Mode <strong>on</strong> to disable all network connections; <strong>off</strong> to re-enable.</p> <p><strong>EDIT</strong>: To enable Airplane Mode using iOS SDK (2.x and maybe 3.x), try <a href="http://blogs.oreilly.com/iphone/2009/01/bring-airplane-mode-control-ba.html" rel="nofollow">Erica Sadun's code</a>: </p> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import &lt;UIKit/UIApplication.h&gt; #include &lt;dlfcn.h&gt; #include &lt;stdio.h&gt; // Framework Paths #define SBSERVPATH "/System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices" #define UIKITPATH "/System/Library/Framework/UIKit.framework/UIKit" int main(int argc, char **argv) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // // For testing try issuing the following: // ap y; sleep 5; ./ap n // if (argc &lt; 2) { printf("Usage: %s (y | n)\n", argv[0]); exit(-1); } // Argument used to switch airplane mode off or on BOOL yorn = [[[NSString stringWithCString:argv[1]] uppercaseString] hasPrefix:@"Y"]; // Fetch the SpringBoard server port mach_port_t *p; void *uikit = dlopen(UIKITPATH, RTLD_LAZY); int (*SBSSpringBoardServerPort)() = dlsym(uikit, "SBSSpringBoardServerPort"); p = SBSSpringBoardServerPort(); dlclose(uikit); // Link to SBSetAirplaneModeEnabled void *sbserv = dlopen(SBSERVPATH, RTLD_LAZY); int (*setAPMode)(mach_port_t* port, BOOL yorn) = dlsym(sbserv, "SBSetAirplaneModeEnabled"); setAPMode(p, yorn); dlclose(sbserv); [pool release]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload