My appl开发者_如何学Pythonication's users don't like interruptions like incoming phone calls. I want to find out if the device is in Airplane mode, warn the user about possible interruptions and recommend invoking Airplane mode.
The reachability examples tell me if the device has a network connection, but it's possible that WiFi is on while the phone is in Airplane mode.
You should just be able to check the kSCNetworkReachabilityFlagsIsWWAN flag (have a look at the Reachability.m class and change it to your heart's content).
精彩评论