0
私の次のコードは、下側にUILabel単語文字カットのテキストを修正する方法
NSMutableParagraphStyle *body1stParagraph = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
body1stParagraph.alignment = NSTextAlignmentCenter;
body1stParagraph.minimumLineHeight = _font_Size;
attrs = @{ NSFontAttributeName : [UIFont fontWithName:font_name size:Font_size],
NSParagraphStyleAttributeName : body1stParagraph,
NSAttachmentAttributeName: textAttachment};
であり、この辞書は、属性付き文字列
[attributeString addAttributes:attrs range:lineRange];
の追加が、ラベルのテキストは
をカットされます![enter image description here](https://i.stack.imgur.com/kkEh8.png)
ラベルにconstraintを使用しましたか? –
いいえ、iラベルプログラムで@vishalを追加 – Keyur
ラベルのフレームを変更します。ラベルの高さでは、複数行のテキストを格納するには十分ではありません。 –