iPhone 判断运营商
2013-03-11 09:48
253 查看
- (NSString *)getCarrier { NSString *strCarrier = nil; CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = [networkInfo subscriberCellularProvider]; if (carrier == nil) { [networkInfo release]; return strCarrier; } NSString *code = [carrier mobileNetworkCode]; if (code == nil) { [networkInfo release]; return strCarrier; } // 根据mobileNetworkCode判断运营商 if ([code isEqualToString:@"00"] || [code isEqualToString:@"02"] || [code isEqualToString:@"07"]) strCarrier = @"中国移动"; else if ([code isEqualToString:@"01"] || [code isEqualToString:@"06"]) strCarrier = @"中国联通"; else if ([code isEqualToString:@"03"] || [code isEqualToString:@"05"]) strCarrier = @"中国电信"; else if ([code isEqualToString:@"20"]) strCarrier = @"中国铁通"; else strCarrier = nil; [networkInfo release]; return strCarrier; }
China - CN
MCC | MNC | Brand | Operator | Status | Bands (MHz) | References and notes |
---|---|---|---|---|---|---|
460 | 00 | China Mobile | China Mobile | Operational | GSM 900 / GSM 1800 / TD-SCDMA 1880 / TD-SCDMA 2010 | |
460 | 01 | China Unicom | China Unicom | Operational | GSM 900 / GSM 1800 / UMTS 2100 | CDMA network sold to China Telecom, WCDMA commercial trial started in May 2009 and in full commercial operation as of October 2009. |
460 | 02 | China Mobile | China Mobile | Operational | GSM 900 / GSM 1800 / TD-SCDMA 1880 / TD-SCDMA 2010 | |
460 | 03 | China Telecom | China Telecom | Operational | CDMA2000 800 / CDMA2000 2100 | EV-DO |
460 | 05 | China Telecom | China Telecom | Operational | ||
460 | 06 | China Unicom | China Unicom | Operational | GSM 900 / GSM 1800 / UMTS 2100 | |
460 | 07 | China Mobile | China Mobile | Operational | GSM 900 / GSM 1800 / TD-SCDMA 1880 / TD-SCDMA 2010 | |
460 | 20 | China Tietong | China Tietong | Operational | GSM-R |
[edit]
详细参考:http://en.wikipedia.org/wiki/Mobile_Network_Code
相关文章推荐
- iphone 通过获取IMSI判断运营商
- iPhone判断运营商
- iphone 通过获取IMSI判断运营商
- Iphone如何判断当前网络的运营商
- iphone 通过获取IMSI判断运营商
- iphone 通过获取IMSI判断运营商
- iphone 通过获取IMSI判断运营商
- iphone 通过获取IMSI判断运营商
- iphone 通过获取IMSI判断运营商
- 判断用户设备是iPad还是iPhone的代码
- 媒体查询判断ipad和iPhone各版本
- iOS开发 - 如何获取设备的总容量和可用容量 网络运营商 3g/wifi判断 手机型号
- Android 获取网络连接方式、判断手机卡所属运营商
- iOS 判断机型是否为iphonex
- ios判断设备是iphone还是ipad
- iphone判断是否联网(http),接受和发送数据
- android 简单通知实现 和 手机运营商判断
- iPhone开发 判断当前的网络是3g还是wifi
- JS 判断浏览器客户端类型(ipad,iphone,android)
- android上获取imsi码,判断运营商信息(移动,联通,电信)