mardi 30 décembre 2014

ios8 currency Symobol has Country Code in front

I am trying to get a currency symbol from the locale, but seems in IOS8 the currencySymbol returned is US$ instead of $. anyone knows what changed?


Thanks,



NSLocale *lcl = [NSLocale currentLocale];
NSNumberFormatter *fmtr = [[NSNumberFormatter alloc] init];
[fmtr setNumberStyle:NSNumberFormatterCurrencyStyle];
[fmtr setLocale:lcl];

NSLog( @"%@", [fmtr internationalCurrencySymbol] );
NSLog( @"%@", [fmtr currencySymbol] );


2014-12-30 00:11:35.617[1344:424347] USD 2014-12-30 00:11:35.617[1344:424347] US$




Aucun commentaire:

Enregistrer un commentaire