Reputation: 2268
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
Reputation: 11026
No, In simulator it is not possible to get the mcc and mnc.
Upvotes: 1