TYAttributedLabel icon indicating copy to clipboard operation
TYAttributedLabel copied to clipboard

你好我在使用- (void)appendView:(UIView *)view;- (void)appendText:(NSString *)text;时遇到了问题。

Open Gaozn opened this issue 3 years ago • 0 comments

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

Gaozn avatar Jan 27 '21 01:01 Gaozn