您的位置:首页 > 产品设计 > UI/UE

label指定位置文字属性设置

2015-07-29 12:11 573 查看
NSMutableAttributedString *bottomStr = [[NSMutableAttributedString
alloc]initWithString:_bottomLabel.text];

[bottomStr addAttribute:NSForegroundColorAttributeName
value:[UIColor
orangeColor]
range:NSMakeRange(6,
1)];
    
_bottomLabel.attributedText = bottomStr;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息