Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gaozn opened this issue Jan 27, 2021 · 0 comments

Comments

@Gaozn
Copy link

Gaozn commented Jan 27, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant