Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望将四舍五入的价格显示为小数点后没有数字的货币。没有货币风格就没有问题。货币样式是否会覆盖我设置的其他属性?
设置货币样式后,尝试
[currencyFormatter setMaximumFractionDigits:0];
您可能还需要设置舍入模式。