NSString *babyName = @"测试";
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"111111111%@222",babyName]];
[str addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:17] range:NSMakeRange(9, babyName.length)];
self.lbTips.attributedText = str ;
这样 就可以设置一个label的不同区间的不同字体了
那
str 可以添加多个属性