获取运营商信息和MNC,MCC

//获取运营商信息

- (NSString*)getCellularProviderName

{

   CTTelephonyNetworkInfo*netInfo = [[CTTelephonyNetworkInfoalloc]init];

   CTCarrier*carrier = [netInfosubscriberCellularProvider];

   NSString*cellularProviderName = [[[carriercarrierName]retain]autorelease];

    NSString *mcc = [carrier mobileCountryCode];

    NSString *mnc = [carrier mobileNetworkCode];

   returncellularProviderName;

}

你可能感兴趣的:(IOS)