commonISOCurrencyCodes
Returns an array of common ISO currency codes
+ (NSArray *)commonISOCurrencyCodes
Return Value
An array of
NSString
objects that represents common ISO currency codes.Discussion of [NSLocale commonISOCurrencyCodes]
Common codes may include, for example, AED, AUD, BZD, DKK, EUR, GBP, JPY, KES, MXN, OMR, STD, USD, XCD, and ZWD.
Example of [NSLocale commonISOCurrencyCodes]
NSString *localeId = [[NSLocale commonISOCurrencyCodes] objectAtIndex:1];
NSLocale *locale = [NSLocale currentLocale];
NSString *currency = [locale displayNameForKey:NSLocaleCurrencySymbol
value:localeId];
NSLog(@"locale %@ currency %@", localeId, currency);
Example of [NSLocale commonISOCurrencyCodes]
CFLocaleCopyCommonISOCurrencyCodes();
CFLocaleCopyISOCurrencyCodes();
[NSLocale commonISOCurrencyCodes];
[NSLocale ISOCurrencyCodes];