且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

链接TTTAttributedLabel的点击颜色

更新时间:2023-12-03 09:37:46

你想看看 TTTAttributedLabel文档,特别是在activeLinkAttributes

You will like to look at TTTAttributedLabel documentation, specifically at activeLinkAttributes


activeLinkAttributes

activeLinkAttributes

@property(nonatomic,strong)NSDictionary * activeLinkAttributes
讨论

@property (nonatomic, strong) NSDictionary *activeLinkAttributes Discussion

包含NSAttributedString属性的字典,当它们处于活动状态时应用于
链接。如果为nil或空
NSDictionary,则不会设置活动链接的样式。默认的活动链接
样式为红色并带下划线。

A dictionary containing the NSAttributedString attributes to be applied to links when they are in the active state. If nil or an empty NSDictionary, active links will not be styled. The default active link style is red and underlined.

声明在

TTTAttributedLabel.h

TTTAttributedLabel.h