Open xhjss opened 6 years ago
[self.titleLabel setSingleLineAutoResizeWithMaxWidth:100]; 这个再加上试试
[self.titleLabel setSingleLineAutoResizeWithMaxWidth:100]; 这个再加上试试
那自动设置宽度还有啥用?
[self.titleLabel setSingleLineAutoResizeWithMaxWidth:100]; 这个再加上试试
那自动设置宽度还有啥用?
看源码对于宽度自适应的逻辑都是基于maxWidth的if条件里面