Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打算开发一个 iphone 应用程序,我需要知道是否可以检查 iphone 是否有任何运营商信号,或者它是否为“无服务”。
我已经与一些开发人员进行了交谈,有些人一直告诉我这是可能的,而另一些人则说这是不可能的......
任何人都可以帮助我吗?
您可以查看 MKNetworkKit 处理域可达性的方式。没有深入研究,但我认为它可以区分 wifi、蜂窝网络和无服务之间的区别。那应该给你你需要的一切。
https://github.com/MugunthKumar/MKNetworkKit
您可以使用:
int wl = CTGetSignalStrength();