is there any way to get country names from iPhone APIs?

Posted by chiemekailo on Stack Overflow See other posts from Stack Overflow or by chiemekailo
Published on 2010-06-06T18:29:45Z Indexed on 2010/06/06 18:32 UTC
Read the original article Hit count: 181

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c