0

Possible Duplicate:
Localize Currency for iPhone

I've developed an MAC App , in this app im using currency. Here im able to do in Indian rupees. I want this app to be used globally. so i need to develop such that the user gets his respective country currency. If i select any country den dat countries currency shud be used I don know how to do this. Can u Please Help me if you know.

Thanks In Advance.

Community
  • 1
  • 1
  • See http://stackoverflow.com/questions/4427680/iphone-how-to-get-local-currency-symbol-i-e-unstead-of-au – CAMOBAP Oct 09 '12 at 11:21

1 Answers1

2

You may use this code:

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

NSLog( @"%@", [fmtr  currencySymbol]); // Prints '$' for example
NSLog( @"%@", [fmtr internationalCurrencySymbol]); // Prints 'USD' for example
CAMOBAP
  • 5,523
  • 8
  • 58
  • 93