cocoa-touch ios iphone objective-c xcode

Iphone, Obtaining a List of countries in an NSArray

I have a menu that let’s a user select a country. Exactly like that in the country menu within the address field.

Does anyone know a simple way of getting a list of countries? I have used NSLocale to generate an array of countries but it’s only the country codes unfortunately and not the human readable equivalent. I don’t want ‘GB’ I want Great Britain.

Use [[NSLocale currentLocale] displayNameForKey:NSLocaleCountryCode value:countryCode] (where countryCode is an item in your list of country codes) to get the country’s name in the user’s current locale.