I\'m quite new to iOS development and I\'m currently building my first app. I\'m trying to get a text field to automatically populate the telephone country code for a specific c
I think, you can only get country code for the current Carrier using CoreTelephony framework:
CTTelephonyNetworkInfo *info = [CTTelephonyNetworkInfo new];
CTCarrier *carrier = info.subscriberCellularProvider;
NSLog(@"country code is: %@", carrier.mobileCountryCode);
If you need a full list of codes for all countries, you need to use some online service for querying it.