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.
Asked
Active
Viewed 2,504 times
3
-
possible duplicate of [Retreiving Carrier Name from iPhone Programmatically](http://stackoverflow.com/questions/853467/retreiving-carrier-name-from-iphone-programmatically) – nobody May 23 '14 at 16:03
1 Answers
3
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!

Karlo A. López
- 2,548
- 3
- 29
- 56
-
Thank you for your answer. CTCarrier.carrierName displays info for the carrier of sim card, not the name of the carrier on which user is roaming. I'd like to know if it is possible to get roaming carrierName. – user3293778 Apr 07 '14 at 18:34