简体   繁体   English

想要了解iPhone是否可以接听来电(飞行模式)

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

My application'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. 可达性示例告诉我该设备是否具有网络连接,但是当手机处于飞行模式时,WiFi可能会打开。

您应该仅能够检查kSCNetworkReachabilityFlagsIsWWAN标志(查看Reachability.m类并将其更改为您的内心需求)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM