0

my following Code is

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};

and this Dictionary add on Attributed String

[attributeString addAttributes:attrs range:lineRange];

but text of label is Cut

enter image description here

Keyur
  • 180
  • 1
  • 5
  • 20

1 Answers1

-1

this may solve your problem -

yourLabel.sizeToFit()
Anupam Mishra
  • 3,408
  • 5
  • 35
  • 63