设置UILable特定的字为特定的颜色

   NSMutableAttributedString *showStr = [[NSMutableAttributedString alloc] initWithString:@"微信搜索V积分就能找到我们"];

    [showStr addAttribute:NSForegroundColorAttributeName value:kUIColorFromRGB(0xed1f24) range:NSMakeRange(4, 3)];

    showLable2.attributedText = showStr;

原文地址:https://www.cnblogs.com/yuanyuandachao/p/4118206.html