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.
我知道这个问题早在 2008 年就被问到了(答案是否定的),但是对于新的 Verizon iPhone,API 中是否有任何东西可以获取这些信息?
我看到UIDevice(您通常会在其中获得其他相关信息)中没有任何与此相关的内容,但也许“ model”中的属性UIDevice具有 Verizon 特定名称?有没有人跑过去发现这个?谢谢
UIDevice
model
CTTelephonyNetworkInfo *netInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = [netInfo subscriberCellularProvider]; NSString *mcc = [carrier mobileCountryCode]; NSString *mnc = [carrier mobileNetworkCode];
移动网络代码 (MNC) 美国
iOS4
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html