NSMutableAttributedString *muStr = [[NSMutableAttributedString alloc] initWithString:string];
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
style.headIndent = 40;//缩进
style.firstLineHeadIndent = 0;//第一行缩进为0
[muStr addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, muStr.length)];
lab.attributedText = muStr;