#字符串截取
NSString *tenString = [tempString substringWithRange:NSMakeRange(self.changeRange, 10)];
#NSString,NSArray
NSString *tempString = [mutableArray componentsJoinedByString:@","];//分隔符逗号
NSArray *array = [Str componentsSeparatedByString:@","];//分隔符逗号
#从字符串中抽出数字(抽出价格)
NSString *totalStr = [[_amountLab.text componentsSeparatedByCharactersInSet:[[NSCharacterSet characterSetWithCharactersInString:@"0123456789."] invertedSet]] componentsJoinedByString:@""];
#NSMutableAttributedString
####设置不同颜色
NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"您将发送付费消息,%ld%@/条", self.inImModel.coin, [UserService getName_Coin]]];
// 给对应的range添加属性
[attributedStr addAttributes:@{NSForegroundColorAttributeName : k_Color_FFB300} range:NSMakeRange(9, attributedStr.length - 9)];
payView.messageLabel.attributedText = attributedStr;
####设置不同大小
NSString *priceString = [NSString stringWithFormat:@"¥ %@", model.money];
NSMutableAttributedString *rightAS = [[NSMutableAttributedString alloc] initWithString:priceString];
[rightAS addAttributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:20]} range:NSMakeRange(1, priceString.length - 1)];
cell.centerLabel.attributedText = rightAS;