Reputation: 71
On iPhone we have Carrier name displayed next to the cellular connection signal strength in a left corner. There are some apps that can modify this name. Is there a way to read this value via APIs? It differs from CTCarrier.carrierName when roaming.
Upvotes: 3
Views: 2641
Reputation: 2668
I really dont understand your question, if you want to get the Carrier Name this is the code:
Prefix: #import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>
CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [info subscriberCellularProvider];
NSString *string = [carrier carrierName];
Hope it helps!
Upvotes: 3