How to check iPhone network type GSM or CDMA

牧云@^-^@ 提交于 2020-01-11 08:41:12

问题


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?

Please help.


回答1:


You could get that through the Model#, but then again, you have to hardcode a list of Model# and compare them.




回答2:


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 ;-)

At http://www.tcpiputils.com/browse/ip-address/192.76.85.245 you get information on verizon IP space



来源:https://stackoverflow.com/questions/5041508/how-to-check-iphone-network-type-gsm-or-cdma

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!