tableviewcell中的归属string在单元出列和重载之前不显示粗体文本

我有一个表格视图,其中的单元格有一些标签文本。 正在从cellForRowAtIndexPath正确设置文本。 正确设置文本的颜色,但粗体属性不会显示,直到单元格出列。

 -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { MyCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier]; Model *model = [self.fetchedResultsController objectAtIndexPath:indexPath]; cell.tag = indexPath.row; [cell updateContentWithModel:model atIndexPath:indexPath]; return cell; } - (void)updateContentWithModel:(Model *)model atIndexPath:(NSIndexPath *)indexPath { self.model = model; [self setTextFromModel]; [self setImageFromModelAtIndexPath:indexPath]; } - (void) setTextFromModel { self.title.text = self.model.header; self.status.attributedText = [self boldString:self.model.status fontSize:self.status.font.pointSize color:[UIColor redColor]]; } +(NSMutableAttributedString *)boldString:(NSString *)stringToBold fontSize:(CGFloat)fontSize color:(UIColor *)color { NSMutableAttributedString *boldString = [[NSMutableAttributedString alloc] initWithString:stringToBold]; [boldString setAttributes:@{NSForegroundColorAttributeName: color, NSFontAttributeName:[UIFont boldSystemFontOfSize:fontSize]} range:NSMakeRange(0, boldString.length)]; return boldString; } 

有没有人经历过这样的事情?

由于UIA的外观,我也有同样的问题。 在设置UILabel属性文本之前将字体\颜色设置为零。