iOS 获取所有国家名称

NSMutableArray *countriesArray = [[NSMutableArray alloc] init];
NSLocale *locale = [NSLocale currentLocale];
NSArray *countryArray = [NSLocale ISOCountryCodes];
for (NSString *countryCode in countryArray)
{
//NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSString *displayNameString = [locale displayNameForKey:NSLocaleCountryCode value:countryCode];
[countriesArray addObject:displayNameString];
}

你可能感兴趣的:(iOS 获取所有国家名称)