Iphone, Obtaining a List of countries in an NSArray

后端 未结 6 1854
暗喜
暗喜 2020-12-04 09:04

I have a menu that let\'s a user select a country. Exactly like that in the contacts.app country menu within the address field.

Does anyone know a simple way of get

6条回答
  •  时光说笑
    2020-12-04 09:25

    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.

提交回复
热议问题