开发者

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

开发者 https://www.devze.com 2023-01-06 05:26 出处:网络
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 rec

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

精彩评论

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