这是效果图:简单实现,一目了然
NSDictionary *publicAttrDict_base = @{NSFontAttributeName : [UIFont systemFontOfSize:14.0f], NSForegroundColorAttributeName :[UIColor darkGrayColor]};
NSString *titleString = [NSString stringWithFormat:@"参与人:%d人", [[_body objectForKey:@"AttendeeCount"] intValue]];
NSMutableAttributedString *titleAttributeString = [[NSMutableAttributedString alloc]initWithString:titleString attributes:publicAttrDict_base];
[titleAttributeString addAttribute:NSForegroundColorAttributeName value:[UIColor grayColor] range:NSMakeRange(0, 4)];
cell.titleLabel.attributedText = titleAttributeString;
NSString *rightString = [NSString stringWithFormat:@"实到:%d人", [[_body objectForKey:@"SignCount"] intValue]];
NSMutableAttributedString *rightAttributeString = [[NSMutableAttributedString alloc]initWithString:rightString attributes:publicAttrDict_base];
[rightAttributeString addAttribute:NSForegroundColorAttributeName value:[UIColor grayColor] range:NSMakeRange(0, 3)];
cell.rightLabel.attributedText = rightAttributeString;