UILabel自适应

``
NSMutableAttributedString *attrDescribeStr = [[NSMutableAttributedString alloc] initWithString:str];

[attrDescribeStr addAttribute:NSForegroundColorAttributeName
 
                        value:[UIColor colorWithRed:255.0/255.0 green:77.0/255.0 blue:48.0/255.0 alpha:1.0]
 
                        range:[str rangeOfString:strStaus]];

``

你可能感兴趣的:(UILabel自适应)