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

在有图片和文字的时候,不知道怎么设置段落缩进,和首行距离视图的距离

问题感觉比较复杂,tableview中,如果cell是复用的,就全部正确 如果cell是全新创建的,label的高度始终等于xib里面初始化的高度,就算我在代理里面写了新的高度,他绘制的还是初始高度。 比如:xib初始化高度10 在cellForRow里面我用计算的高度写了新的高度为90,结果是view的高度确实是90,但里面文字绘制rect的高度还是10,结果就是label高90,文字只有顶部没有显示全的一截(高度为10)。

``` TYTextContainer *textContainer = [[TYTextContainer alloc]init]; // 整体设置属性 textContainer.characterSpacing = 3; textContainer.text = @"确定按钮"; textContainer.textColor = [UIColor purpleColor] ; textContainer.font = [UIFont systemFontOfSize:17]; textContainer.textAlignment = kCTTextAlignmentCenter; TYTextStorage *textStorage = [[TYLinkTextStorage...

纯emoji 字符串高宽计算不准确。 中英文计算高宽不相等,一行文字最明显

阿拉伯语 和 图片混排会 CTRun的range 会计算错误 造成图片和文字叠加的bug。

CTTextAlignment textAlignment: typedef CF_ENUM(uint8_t, CTTextAlignment) { kCTTextAlignmentLeft CT_ENUM_AVAILABLE(10_8, 6_0) = 0, kCTTextAlignmentRight CT_ENUM_AVAILABLE(10_8, 6_0) = 1, kCTTextAlignmentCenter CT_ENUM_AVAILABLE(10_8, 6_0) = 2, kCTTextAlignmentJustified CT_ENUM_AVAILABLE(10_8, 6_0) = 3, kCTTextAlignmentNatural CT_ENUM_AVAILABLE(10_8, 6_0) =...

feature: 完善autolayout高度自适应处理 bugfix: 解决设置字体问题 modify: 修改初始化默认字距、行距表现跟UILabel表现一致