作者:--AppleChan-- | 来源:互联网 | 2023-05-16 17:33
IhaveproblemwithapplicationusingXIBswithoutautolayout.Idontknowifthisisimportantinf
I have problem with application using XIBs without autolayout. I don't know if this is important information.
我对使用XIBs而不使用autolayout有问题。我不知道这是不是重要的信息。
I have UILabel with 2 lines using word wrap. In iOS 10 word wrap was working correctly, and first line contained one word + special character, for example ampersand. Example:
我有UILabel和2行使用word wrap。在ios10中,换行是正确的,第一行包含一个单词+特殊字符,例如&符号。例子:
Then on iOS 11 word wrap is working somehow wrong and puts ampresand to the second line:
然后在ios11中,换行有点问题,把ampresand放到了第二行:
This is problematic as longer words, that normally fitted on second line now are not being shown correctly. Any idea what has changed? I know about safeArea but it doesn't look like reason. Any ideas how to move that ampersand to the top where is plenty of space for it?
这是有问题的,因为通常在第二行的较长的单词现在没有被正确显示。知道什么改变了吗?我知道有关安全的知识,但这似乎不是个理由。你知道怎么把这个&符号移到上面有足够的空间吗?
Rest of the settings:
其他设置:
5 个解决方案