NSString *beginTimeString = [NSString stringWithFormat:@"开始时间:%@",eventListModel.beginTime>1?[NSDate dateWithTimeForString:eventListModel.beginTime]:@"无"];
NSMutableAttributedString *beginTimeAttribute = [[NSMutableAttributedString alloc] initWithString:beginTimeString];
NSRange timeRange2 = [beginTimeString rangeOfString:@"开始时间:"];
[beginTimeAttribute addAttributes:@{NSForegroundColorAttributeName:[UIColor lightGrayColor]} range:timeRange2];
self.time.attributedText = beginTimeAttribute;
网友评论