is there any way to get country names from iPhone APIs?
- by chiemekailo
Hi,
I want to provide a picker to the user to select a country.
I've had a look in the NSLocale docs and I can get a list of all of the country codes supported on the device, which feels like a start:
Code:
NSArray *codes = [[NSArray alloc] initWithArray:[NSLocale ISOCountryCodes]];
But I can't work out if there is a programatic way to convert this array into country names...
Ideally this list would be localized as well, i.e. show the country name in the user's preferred language.
Can anyone point me in the right direction?