-1

I am grabbing data from a RSS feed dictionary and seems to be working, but the problem is it parses the symbol instead of actual currency. I am not sure what is the best way to go about this. Here is a tiny snippet of the code. I know there is NSLocale, but not sure if that is the best way to do this.

     [currencyDict valueForKey:@"currency_symbol"]; 
user2997441
  • 195
  • 2
  • 8

1 Answers1

0

You can get the list of Currency symbols here: http://www.forex-rates.biz/currency-symbols.htm

and use below code to Replace them.

yourstring= [yourstring stringByReplacingOccurrencesOfString:@"&#36" withString:@"$"];

You can get a similar Answer here.

Community
  • 1
  • 1
Siba Prasad Hota
  • 4,779
  • 1
  • 20
  • 40