0

Is there a way to get the name of the current carrier of the phone inside a Cocoa Touch application?

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
Ozgur
  • 1
  • duplicate: http://stackoverflow.com/questions/853467/retreiving-carrier-name-from-iphone-programmatically – Vladimir Mar 09 '10 at 12:10

2 Answers2

2

You can from iOS4+

First add the CoreTelephony.framework to your project.

Then import the following to the top of your .h or .m file:

#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>

Use sample:

CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [netinfo subscriberCellularProvider];
NSLog(@"Carrier name:%@", [carrier carrierName]);
Jalakoo
  • 3,523
  • 2
  • 21
  • 20
  • From the Apple documentation `carrierName` is "The name of the user’s home cellular service provider." not the current carrier. The home name (i.e. the one your account is charged to) does not change even when you are abroad and using a third party provider as your current service. – Vince O'Sullivan May 15 '14 at 10:44
-1

The answers is No. Not officially. Not without Jailbreaking.

Jordan
  • 21,746
  • 10
  • 51
  • 63