IOS: UILabel How to achieve TextAlignment on a single line

How to achieve compliance TextAlignment on a single line label.

  • I have one fixed width UILabel (200)
  • The number of lines of this label is always 1
  • I want the text of this One Line to be justified at both ends.

So far, What I saw TextAlignment.justified only applies to a paragraph, as well as to a paragraph that it does not apply to the last line or a single line.

+4
source share

Source: https://habr.com/ru/post/1692516/


All Articles