Open yuhangjob opened 7 years ago
我设置了 label的高度自适应就会出现这种问题 改为固定高度就不会
原因:如果宽、高是精度很高的小数,view显示的时候都会有黑线。将宽高设为整数值就好了。 contentLabel.sd_resetLayout .topSpaceToView(topView,0) .leftEqualToView(topView) .widthIs((int)(textRect.size.width + 1)) .heightIs((int)(textRect.size.height + 1));
能请教一下 textRect 是怎么来的么?
根据文本自动算高好像是有这个问题,我修改了向上取整没问题了
label放英文时出现细线