标签:
给UILabel添加下划线
1 NSMutableAttributedString *content = [[NSMutableAttributedString alloc]initWithString:text]; 2 NSRange contentRange = {0,[content length]}; 3 [content addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:contentRange]; 4 5 [_titleLabel setAttributedText:content];
标签:
原文地址:http://www.cnblogs.com/airy99/p/4529966.html