user3293778
user3293778

Reputation: 71

iOS Objective-C read cellular network provider

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

Answers (1)

Karlo A. López
Karlo A. López

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

Related Questions