Today, the art requires a label font to have a certain amount of space between, my data because the network request is not set successfully, can only adjust the spacing between paragraphs,
Uilabel setting properties such as line spacing:
Nsmutableattributedstring *attributedstring =[[nsmutableattributedstringalloc ]initwithstring: Contentlabel. Text];;
nsmutableparagraphstyle *paragraphstyle = [ [N Smutableparagraphstylealloc]init];
[paragraphstyle setlinespacing: 5];
[attributedstring addattribute: Nsparagraphstyleattributenamevalue:p aragraphstylerange:nsmakerange (0, Contentlabel. Text. length)];
contentlabel . Attributedtext =attributedstring;
/ / height adjustment
cgsize size= C16>cgsizemake(width,500000);
cgsize labelsize =[contentlabel sizethatfits C7>:size];
Reference: http://www.cnblogs.com/xqios/p/4123784.html
Line spacing for IOS Uilabel