ios - The UIlabel AttributedString first line indentation -


  1. label text first line need indent,i use nsmutableparagraphstyle setfirstlineheadindent.
  2. but when label 1 line, attributedstring intercept omitted behind few characters,why?

    nsmutableparagraphstyle *style = [nsmutableparagraphstyle new]; [style setfirstlineheadindent:11]; [[nsattributedstring alloc] initwithstring:@"abcdefg" attributes:dic]; 


Comments