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

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -