开发者

Want to find out if iPhone can receive incoming calls (airplane mode)

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜