attributedStringappendNSAttributedStringstring Stringformat 2f price attributes font UIFontsystemFontofSize 24 weight bold foregroundColor StylecolorRed改成DIN Alternate-Bold字体代码
attributedString.append(NSAttributedString(string: String(format: "%.2f", price), attributes: [.font: UIFont(name: "DINAlternate-Bold", size: 24)!, .foregroundColor: Style.colorRed]))
原文地址: https://www.cveoy.top/t/topic/cr2v 著作权归作者所有。请勿转载和采集!