我有两个我检查过的UILabel在所有相关方面具有完全相同的属性,但它们似乎不想排队。我已将两者的NSKernAttribute设置为值1.0,所以它不能是那个虽然它看起来像间距......
有什么想法吗? 提前致谢
(以下是两个标签,以及每个标签的属性)
标签较短: 可选([
"NSFont": <UICTFont: 0x7f8e651542e0>
font-family: ".SFUIDisplay-Thin";
font-weight: normal;
font-style: normal;
font-size: 30.00pt,
"NSParagraphStyle": Alignment 1, LineSpacing 0, ParagraphSpacing 0, ParagraphSpacingBefore 0, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 4, Tabs (
28L,
56L,
84L,
112L,
140L,
168L,
196L,
224L,
252L,
280L,
308L,
336L
), DefaultTabInterval 0, Blocks (
), Lists (
), BaseWritingDirection -1, HyphenationFactor 0, TighteningForTruncation NO, HeaderLevel 0, "NSShadow": NSShadow {0, -1} color = {(null)}, "NSKern": 1, "NSColor": UIDeviceRGBColorSpace 0.999462 0.999462 0.999462 1])
更长的标签:
Optional(["NSKern": 1, "NSColor": UIDeviceWhiteColorSpace 1 1])