TYAttributedLabel icon indicating copy to clipboard operation
TYAttributedLabel copied to clipboard

TYAttributedLabel 简单,强大的属性文本控件(无需了解CoreText),支持图文混排显示,支持添加链接,image和UIView控件,支持自定义排版显示

Results 79 TYAttributedLabel issues
Sort by recently updated
recently updated
newest added

看了很多问题都没人回复,有些问题是几年前提的,到现在了也没解决

我用的label,但是添加完之后发现一直无法实现文本内容居中,即便是我添加了textAlignment的属性,仍然无法实现。请问我该如何解决?

默认限制行数显示时,添加textStorage点击长按代理都不走,展开全部显示时,代理才会走

我的cell是使用storyboard创建的。TYAttributedLabel是一个固定高度的view,我在配置Cell时使用- (void)appendView:(UIView *)view;添加个宽高都小于TYAttributedLabel的label, 然后使用- (void)appendText:(NSString *)text;拼接了一个文本。但当我运行时,发现前者view和后者text不在同一水平线上(前者高,后者低)。然后我尝试把TYAttributedLabel的高度设置为更大的值,布局就显示正常了。这是怎么回事呢?

Xcode 12: Incompatible block pointer types sending 'void (^__strong)(__strong id)' to parameter of type 'void (^)(__strong id)'

Type forced transfer for a block, this will make it can build success in Xcode 12

"آٍٍٍَّ🇮🇹 بٍٍٍٍََِّ"显示这个文字时会崩溃 [self.contentLabel appendLinkWithText:@"آٍٍٍَّ🇮🇹 بٍٍٍٍََِّ" linkFont:Title_Font linkColor:UIColorFromRGB0X(0x8EECB5) underLineStyle:kCTUnderlineStyleNone linkData:@"linkStringTaped"];