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

如题:如何在图文混排的时候实现炫彩文字,

更新ios 13后 [label appendTextAttributedString:],追加attributeStr,当富文本效果为基于基线上下偏移NSBaselineOffsetAttributeName,删除线NSStrikethroughColorAttributeName,富文本效果不起作用

linesSpacing属性 只有先设置文本内容再设置linesSpacing属性,这个linesSpacing属性才生效。先设置好linesSpacing属性再给文本内容赋值,linesSpacing就没效果了。我用是这样,是我姿势不对吗?,比如,我在cell上设置好label属性,然后根据获取的数据赋值,linesSpacing属性就无效了

![image](https://user-images.githubusercontent.com/18068125/67622286-86d74000-f84b-11e9-951c-9eef61112981.png) 您好,请问怎么修改文字与下划线之间的间距呢?

我发现就是提前生成并缓存了TYTextContainer,每次使用的时候,图片还是会走drawStorageWithRect 方法,CGContextDrawImage去绘制,导致卡顿问题

想知道对html标签的支持范围。比如 图片,表格,数学公式等相关标签,各种媒体标签应不支持了吧.... 然后标签太多的话是不是会卡顿?

如果高度限制, 会有半行的情况出现 代码如下, 可以直接粘贴运行 ``` TYAttributedLabel *label2 = [[TYAttributedLabel alloc]init]; label2.backgroundColor = [UIColor lightGrayColor]; label2.frame = CGRectMake(0, 100+10, CGRectGetWidth(self.view.frame), 60); [self.view addSubview:label2]; // 追加(添加到最后)文本 [label2 appendText:@"\t任何值得去的地方任何值得去的地方任何值得去的地方任何值得去的地方任何值得去的地方"]; [label2 appendImageWithName:@"haha" size:CGSizeMake(15, 15)];...

做题Demo在哪里,麻烦问下

[text enumerateStringsMatchedByRegex:@"" usingBlock:^(NSInteger captureCount, NSString *const __unsafe_unretained *capturedStrings, const NSRange *capturedRanges, volatile BOOL *const stop) { TYImageStorage *imageStorage = [[TYImageStorage alloc]init]; imageStorage.cacheImageOnMemory = YES; NSURL *url = [NSURL URLWithString:capturedStrings[1]]; imageStorage.placeholdImageName...