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
Post a Comment