i am making a currency selecting screen.for that i am displaying the list of currencies using the following code to create an array of currencies from which a tableview is populated
NSArray *countryArray = [NSLocale ISOCurrencyCodes];
for(NSString *country in countryArray)
{
//NSLog(@"%@",[[NSLocale currentLocale] displayNameForKey:NSLocaleCurrencyCode value:country]);
if([[NSLocale currentLocale] displayNameForKey:NSLocaleCurrencyCode value:country])
{
[countriesArray addObject:[[NSLocale currentLocale] displayNameForKey:NSLocaleCurrencyCode value:country]];
}
}
.but i cant find a way to connect a currencies name and locale.ie if i select a currency name then i should be able to set the corresponding locale for currency display in other screens.How to find the locale from currencies list