| | |
| | | _timeL.text=[NSString stringWithFormat:@"%@ - %@",[self turnDate:tempInfo.beginTime],[self turnDate:tempInfo.endTime]]; |
| | | |
| | | //剩余次数 |
| | | NSString *contentStr=[NSString stringWithFormat:@"%@%@%@",HDLEZLocallizedString(@"device_temp_left"),tempInfo.useCount,HDLEZLocallizedString(@"device_temp_times")]; |
| | | NSMutableAttributedString *attributedStringM = [[NSMutableAttributedString alloc] initWithString:contentStr]; |
| | | [attributedStringM addAttribute:NSForegroundColorAttributeName value:HDLEZ_COLOR_TITLE_BLACK range:NSMakeRange(contentStr.length-HDLEZLocallizedString(@"device_temp_times").length-tempInfo.useCount.length, tempInfo.useCount.length)]; |
| | | _describeL.attributedText=attributedStringM; |
| | | if ([tempInfo.useCount isEqualToString:@"-1"]) {//不限次数 |
| | | _describeL.text=HDLEZLocallizedString(@"device_temp_unlimited_use_times"); |
| | | _describeL.textColor=HDLEZ_COLOR_TITLE_BLACK; |
| | | }else{ |
| | | NSString *contentStr=[NSString stringWithFormat:@"%@%@%@",HDLEZLocallizedString(@"device_temp_left"),tempInfo.useCount,HDLEZLocallizedString(@"device_temp_times")]; |
| | | NSMutableAttributedString *attributedStringM = [[NSMutableAttributedString alloc] initWithString:contentStr]; |
| | | [attributedStringM addAttribute:NSForegroundColorAttributeName value:HDLEZ_COLOR_TITLE_BLACK range:NSMakeRange(contentStr.length-HDLEZLocallizedString(@"device_temp_times").length-tempInfo.useCount.length, tempInfo.useCount.length)]; |
| | | _describeL.attributedText=attributedStringM; |
| | | } |
| | | |
| | | |
| | | |
| | | } |