【发布时间】:2019-01-05 17:58:33
【问题描述】:
let myStr = "I have 4.34 apples."
我需要位置范围和长度,因为我使用 NSRange(location:, length:) 将数字 4.34 加粗
extension String{
func findNumbersAndBoldThem()->NSAttributedString{
//the code
}
}
【问题讨论】:
标签: swift numbers find return location