iphone how to check the Airplane mode?

g.revolution picture g.revolution · Sep 10, 2009 · Viewed 12.5k times · Source

HI ,

i want to check wether Airplane mode is on or not .. how to check that ?

thanks + how to check that the user is using WIFI or GPRS OR EDGE . how to differentiate ??

Answer

Teemu Kurppa picture Teemu Kurppa · Sep 10, 2009

If you just want show notification, when user is in airplane mode, then it's enough to enable SBUsesNetwork property in your app's plist file. When your code is using network, user is prompted to turn off Airplane mode automatically.

See e.g. this post.