Search code examples
objective-ccurrencynsnumberformatternslocale

Convert $ to Local Currency in Objective C


I've read questions about formatting a currency but nothing seems to provide me an answer with my question. I tried the code suggestions I found but all i get were the same values with different currency symbols. For example: $1 -> ₩1

What I want to know is a way to actually convert the amount to its local currency's equivalent. For example: $1 -> ₩1011.75

Is there a possible way to do this using Apple's API?

I have a table that displays a list of the products I offer. They are all in USD. I want it to be displayed properly depending on the region. I would appreciate any help.


Solution

  • I created this library to help you out. If you have any issues, then just leave a comment below. MGCurrencyExchanger