Actually, I want to display the currency symbols of all currency codes and I'm using code like this,but i only get "$" symbols
-(void) showCurrenciesList
{
NSNumberFormatter *numFormatter = [[NSNumberFormatter alloc] init];
[numFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
//[numFormatter setLocale: [NSLocale currentLocale]];
NSMutableArray *aryAllCurrencies = [[NSMutableArray alloc] init];
//NSLocale *locale = [[[NSLocale alloc] initWithLocaleIdentifier: @"en_US"] autorelease];
NSArray *currencyArray = [NSLocale ISOCurrencyCodes];
NSLog(@"Currency array : %@",currencyArray);
for (NSString *currencyCode in currencyArray)
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[numFormatter setCurrencyCode:currencyCode];
NSString *currencySymbol = [numFormatter currencySymbol];
[aryAllCurrencies addObject:currencySymbol];
[pool release];
}
//[countriesArray sortUsingSelector:@selector(compare:)];
NSLog(@"currencies array : %@",aryAllCurrencies);
}
Is this right or is there another way to do this?