0
プロジェクトの作業中に通貨をNiriaに変換してNiriaに変換することができますが、帰属として表示する必要があるときに問題が発生します。 文字列に1文字のストライクがありません通貨記号を作成した後の属性記号
let balance = "₦ 450.00"
let myMutableString = NSMutableAttributedString(string: balance, attributes: [NSFontAttributeName: UIFont.systemFont(ofSize: 48)])
if balance.contains(".") {
myMutableString.addAttributes([NSFontAttributeName: UIFont.systemFont(ofSize: 22)], range: NSRange(location: balance.length - 2, length: 2))
}
これはシステムフォントの問題です –