Open jjzjx118 opened 7 years ago
按理说设置Label的时候不需要设定宽度的。代码: _dateL.sd_layout.leftSpaceToView(self.contentView, 10).topSpaceToView(self.contentView, 10);
这样设置后文字总是显示不完全,即便在赋值完后调用sizeToFit也不行。一定要自己设定宽度才可以。请问是哪里不对吗?
[label setSingleLineAutoResizeWithMaxWidth:SCREEN_WIDTH];
按理说设置Label的时候不需要设定宽度的。代码: _dateL.sd_layout.leftSpaceToView(self.contentView, 10).topSpaceToView(self.contentView, 10);
这样设置后文字总是显示不完全,即便在赋值完后调用sizeToFit也不行。一定要自己设定宽度才可以。请问是哪里不对吗?