NSString *strJTGZ = [NSString stringWithFormat:@"交通管制%d处 ",[jtgz intValue]];
    NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc]initWithString:strJTGZ];
    [attributedStr addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(4,jtgz.lenght)];
    [mutableStr appendAttributedString:attributedStr];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2021-10-11
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-05-27
相关资源
相似解决方案