如何检查iPhone网络类型GSM或CDMA [英] How to check iPhone network type GSM or CDMA
问题描述
在我的应用程序中,我需要检查网络类型GSM或CDMA(对于Verizon)。我发现CTCarrier类包含属性mobileNetworkCode,但我不想为每个提供者硬编码值。还有其他方法可以检查吗?
In my application I need to check network type GSM or CDMA (for Verizon). I found CTCarrier class which contains property mobileNetworkCode, but I don't wanna hardcode value for each providers. Are there other ways to check it?
请帮忙。
推荐答案
也许你可以通过检查来做到这一点iPhone的IP地址,如果它是无线连接的。如果一旦检测到它将不会改变,除非你改变SIM ;-)
Maybe you could do that by checking the IP Address of the iPhone if it is wireless connected. If once detected it would´t change unless you change the SIM ;-)
在 http://www.tcpiputils.com/browse/ip-address/192.76.85.245 您获得有关Verizon IP空间的信息
At http://www.tcpiputils.com/browse/ip-address/192.76.85.245 you get information on verizon IP space
这篇关于如何检查iPhone网络类型GSM或CDMA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!