首页 > 解决方案 > 在飞行模式下,CTCarrier 中的 isoCountryCode 不返回 nil

问题描述

我在 iPhone 6(iOS 11.4.1)的 CTCarrier 中使用 isoCountryCode。插入 SIM 并打开飞行模式时,如果 isoCountryCode 返回为“in”的值。

根据Apple Docs,此属性的值是nil以下任何一项适用。

需要帮助才能知道我是否正确理解了该文档。如果是,那么为什么我在飞行模式下将 isoCountryCode 设为“in”?


我已针对此问题向 Apple 提交了错误。

https://bugreport.apple.com/web/?problemID=47138150

标签: iosiphoneswiftios11

解决方案


是的,你理解正确。isoCountryCode 在飞行模式下应该为零。


推荐阅读