#import < CoreTelephony/CTCarrier.h >
#import < CoreTelephony/CTTelephonyNetworkInfo.h >
// Setup the Network Info and create a CTCarrier object
CTTelephonyNetworkInfo *networkInfo = [[
[CTTelephonyNetworkInfo alloc]
init] autorelease];
CTCarrier *carrier = [networkInfo subscriberCellularProvider];
// Get carrier name
NSString *carrierName = [carrier carrierName];
if (carrierName != nil)
NSLog(@"Carrier: %@", carrierName);
// Get mobile country code
NSString *mcc = [carrier mobileCountryCode];
if (mcc != nil)
NSLog(@"Mobile Country Code (MCC): %@", mcc);
// Get mobile network code
NSString *mnc = [carrier mobileNetworkCode];
if (mnc != nil)
NSLog(@"Mobile Network Code (MNC): %@", mnc);
NSString *iso = [carrier isoCountryCode];
if (iso != nil)
NSLog(@"ISO country Code (ISO): %@", iso);
No comments:
Post a Comment