漫游时CTCarrier mobileNetworkCode是否会更改? [英] Does CTCarrier mobileNetworkCode change when roaming?

查看:178
本文介绍了漫游时CTCarrier mobileNetworkCode是否会更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档说明CTCarrier的carrierName:如果用户正在漫游,则该值不会更改;它始终代表用户拥有其帐户的提供商."

The documentation states for CTCarrier's carrierName "The value does not change if the user is roaming; it always represents the provider with whom the user has an account."

但是,关于mobileNetworkCode却没有相同的说法.这种变化是基于当前载波还是保持不变?

It does not say the same about mobileNetworkCode however. Does this change based on the current carrier or does it remain constant too?

我正在尝试查找电话是否在startMonitoringSignificantLocationChanges回调中漫游,以便避免地理位置定位.

I am trying find if the phone is roaming in a startMonitoringSignificantLocationChanges callback so would like to avoid geolocating.

推荐答案

我现在正在漫游-在瑞士通过Swisscom的AT& T iPhone 4漫游.刚写了一个快速的程序来测试.这是我得到的:

I'm roaming right now - in Switzerland on an AT&T iPhone 4 on Swisscom. Just wrote a quick program to test. Here's what I got:

2011-04-29 09:01:55.657 test[2094:707] Carrier Name: AT&T
2011-04-29 09:01:55.665 test[2094:707] ISO Country Code: us
2011-04-29 09:01:55.669 test[2094:707] Mobile Country Code: 310
2011-04-29 09:01:55.678 test[2094:707] Mobile Network Code: 410

因此,要回答您的问题,看起来好像移动网络代码没有更改(以下是410为AT& T)

So, to answer your question, doesn't look like mobile network code changes (410 is AT&T as cited below)

这篇关于漫游时CTCarrier mobileNetworkCode是否会更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆