#pragma mark 同一個label中間幾個字 變顏色、大小都能改變
//用法:self.integralLabel.attributedText =[NSString getLabelChangeColor:[UIColor orangeColor] andFont:[UIFont systemFontOfSize:22] andString1:@"我的" andChangeString:@"大的" andGetstring3:@"自己"];
+(NSMutableAttributedString*)getLabelChangeColor:(UIColor*)color andFont:(UIFont*)fout andString1:(NSString*)string1 andChangeString:(NSString*)string2 andGetstring3:(NSString*)string3{
//string2 是變色的部分
NSString *inteStr = [NSString stringWithFormat:@"%@%@%@",string1,string2,string3];
NSMutableAttributedString *inteMutStr = [[NSMutableAttributedString alloc] initWithString:inteStr];
//設置中間變紅的字體大小顏色
NSRange orangeRange = NSMakeRange([[inteMutStr string] rangeOfString:string2].location, [[inteMutStr string] rangeOfString:string2].length);
[inteMutStr addAttributes:@{NSFontAttributeName:fout,NSForegroundColorAttributeName:color} range:orangeRange];
return inteMutStr;
}