NSNumberFormatterCurrencyStyle number formatter without decimal digits

I want the price to be rounded to display as a currency without digits after the decimal symbol. There is no problem without a currency style. Is a currency style overriding other properties that I set?

+7
source share
1 answer

Once you have set the currency style, try

[currencyFormatter setMaximumFractionDigits:0]; 

You may also need to set the rounding mode.

+30
source

All Articles