Get SIM card details of iPhone

Here is the code to get SIM card details of iPhone

1) Add CoreTelephony framework

2) Import following libraries

#import <CoreTelephony/CTCarrier.h>

#import <CoreTelephony/CTTelephonyNetworkInfo.h>

3) Use this code to get details

CTTelephonyNetworkInfo* info = [[CTTelephonyNetworkInfo alloc] init];

CTCarrier* carrier = info.subscriberCellularProvider;

NSString *carrierName = carrier.carrierName;

NSLog(@”carrier : %@”, carrier);

// Here are some parameters

//NSString *mobileCountryCode = carrier.mobileCountryCode;

//NSString *isoCountryCode = carrier.isoCountryCode;

//NSString *mobileNetworkCode = carrier.mobileNetworkCode;




Need more help?

Hi there, was your problem or query resolved? If not & need more assistance, please do reach out to us at, we'll be more than delighted to help. Nanostuffs has 7+ years of extensive Salesforce & iOS/Android experience.
Holler Box