Get currency symbols from currency ISO-code in IOS app

Samsul Hoque
0
Get device local currency symbols  for iOS applications.Flowing:-



NSString *currencyCode = @"EUR";
NSNumberFormatter * formatter = [NSNumberFormatter new];
formatter.numberStyle = NSNumberFormatterCurrencyStyle;

NSString * localeIde = [NSLocale localeIdentifierFromComponents:@{NSLocaleCurrencyCode: currencyCode}];
formatter.locale = [NSLocale localeWithLocaleIdentifier:localeIde];

NSString * symbol = formatter.currencySymbol;

Post a Comment

0Comments
Post a Comment (0)