objective c - iPhone -> NSNumberFormatter - price without the currency code -


i have iphone app , want display price. use these lines of code:

nsnumberformatter *price = [[nsnumberformatter alloc] init]; [price setnumberstyle:nsnumberformattercurrencystyle]; [price setcurrencycode:@"usd"]; 

what want price, formatted currencycode in case without usd. instead of 30,00 $, want have 30,00 without $.

how can this?

best regards, tim.

what you're looking rid of currency symbol.

[price setcurrencysymbol:@""]; 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -