我想NSLinkAttributeName在 UILabel 中自定义颜色。但设置NSForegroundColorAttributeName不影响链接文本颜色,它仍然是蓝色。
NSLinkAttributeName
NSForegroundColorAttributeName
但NSUnderlineColorAttributeName有效,我能够自定义下划线颜色。是否可以以某种方式更改链接文本颜色?
NSUnderlineColorAttributeName
nsattributedstring ios swift
ios ×1
nsattributedstring ×1
swift ×1