I want to show both currency codes and its display name in a table view in order to let users select, e.g.
CHF-Swiss Franc
EUR-Euro
RUB-Russion Rubble
I know I can use [NSLocale ISOCurrencyCodes] to get all currency codes, but how can I get the currency display name (Swiss Franc, Euro, etc…) of the currency code? and I hope the dispaly name support localization. Thanks.
You can use NSLocale’s
-(NSString *)displayNameForKey:(id)key value:(id)valuePass in
NSLocaleCurrencyCodeinkeyand your currency code invalue