Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 UILabel,我们有 adjustFontSizetoWidth 属性,就像我们对 CATextLayer 有任何东西一样。
我想调整字符串以适合给定的文本层宽度。
将wrapped属性设置为YES。默认情况下,它设置为NO。
wrapped
YES
NO