Я хотел бы сделать первый символ буквицы в UILabel
, используя только свойство attributedText
NSAttributedString
. Как это:
(источник: interprebydesign.com)
Я экспериментировал с настройкой базовой линии для диапазона первого символа на отрицательное значение, и это работает для выравнивания вершины первого символа с вершиной остальной части первой строки. Но я не нашел способа заставить другие строки перетекать справа от ограниченного символа.
Можно ли это решить с помощью NSAttributedString only
, или мне нужно разделить строку и сделать ее самостоятельно, используя Core Text?