我知道我可以使用 CTCarrier 类的以下属性获取运营商名称、MNC 和 MCC
carrierName
mobileCountryCode
mobileNetworkCode
这些详细信息是插入设备的 SIM 卡的详细信息。有没有办法获得设备使用的网络的类似详细信息?
例子:
SIM MCC 和 MNC 分别为 404 和 02。
网络 MCC 和 MNC 可以是 404 和 02、404 和 03 等。
编辑:这就是我想要的。
我有一张位置 x 的沃达丰 SIM 卡。 MCC 和 MNC 分别为 404 和 30。
现在,如果我前往位置 y,我的 sim 可能会锁定到沃达丰或其他一些网络(有时称为漫游)
现在我想获取我的 sim 锁定到的网络的详细信息!
I know I can get the carriers Name, MNC and MCC using the following properties of the CTCarrier Class
carrierName
mobileCountryCode
mobileNetworkCode
These details are of the SIM inserted into the device. Is there a way to get similar details of the network used by the device?
Example:
The SIM MCC and MNC are 404 and 02.
The Network MCC and MNC could be 404 and 02, 404 and 03 etc.
Edit: Here's what I want.
I have a sim card of Vodafone of location x. The MCC and MNC is 404 and 30 respectively.
Now if I travel to location y, my sim may latch to either Vodafone or some other network (sometimes called roaming)
Now I want to get the details of the network my sim is latched to!!
发布评论
评论(2)
用 John Muchow 的话来说,摘自他的文章 此处:
In the words of John Muchow, from his article here:
目前看来不可能(iOS 5.0)。
CoreTelephony 框架是您可以找到此 API 的地方,正如您(和 Apple 的文档)提到的,CTCarrier 属性只能为您提供用户的蜂窝服务提供商的详细信息,而不是当前网络的详细信息。
您应该通过 http://bugreport.apple.com 向 Apple 提交增强请求,希望其中包含您的内容正在寻找未来的操作系统更新。
出于好奇,您想用这些信息做什么?
It doesn't look like it's currently possible (iOS 5.0).
The CoreTelephony framework is where you would find this API, and as you (and Apple's documentation) mention, the CTCarrier properties only get you details for the user's cellular service provider, not the current network.
You should file an enhancement request with Apple at http://bugreport.apple.com and hopefully they include what you're looking for in a future OS update.
Out of curiosity, what are you trying to do with this information?