We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
布局代码如下: label.sd_layout .autoHeightRatio(0) .leftSpaceToView(self.contentView, 34) .topSpaceToView(titleLab, 35) .rightSpaceToView(self.contentView, 34) .minWidthIs(300); 我已经设置了minWidthIs,可是单行富文本label的宽度仍然是自适应,并且没有居中对齐,是哪里的问题呢?
The text was updated successfully, but these errors were encountered:
我也遇到同样问题,设置 isAttributedContent = YES,单行富文本就不居中。不设置 isAttributedContent,单行富文本居中,但是多行计算高度有问题。
Sorry, something went wrong.
跟yylabel 一起使用就会遇到很多问题
No branches or pull requests
布局代码如下:
label.sd_layout
.autoHeightRatio(0)
.leftSpaceToView(self.contentView, 34)
.topSpaceToView(titleLab, 35)
.rightSpaceToView(self.contentView, 34)
.minWidthIs(300);
我已经设置了minWidthIs,可是单行富文本label的宽度仍然是自适应,并且没有居中对齐,是哪里的问题呢?
The text was updated successfully, but these errors were encountered: