Alaa Eldin
Alaa Eldin

Reputation: 2268

Change MCC and MNC in Xcode simulator

I use XCode 4, I want to know if it's possible to change operator MCC and MNC in Simulator and get them when debug when I write the following :

    CTTelephonyNetworkInfo *netInfo = [[CTTelephonyNetworkInfo alloc] init];
    CTCarrier *carrier = [netInfo subscriberCellularProvider];
    NSString *mcc = [carrier mobileCountryCode];
    NSString *mnc = [carrier mobileNetworkCode];
    NSLog(@"MCC is%@",mcc);
    NSLog(@"MNC is%@",mnc);

Upvotes: 0

Views: 806

Answers (1)

Manish Agrawal
Manish Agrawal

Reputation: 11026

No, In simulator it is not possible to get the mcc and mnc.

Upvotes: 1

Related Questions