我正在尝试让我的表格视图单元格显示每个单元格的特定字体和颜色。在cellForRowAtIndexPath中使用以下代码,大多数单元格显示新的颜色和字体,但由于某种原因,有2个单元格没有。有什么想法吗?
CGFloat nRed=204.0/255.0;
CGFloat nBlue=0/255.0;
CGFloat nGreen=153.0/255.0;
UIColor *myColortext=[[UIColor alloc]initWithRed:nRed green:nBlue blue:nGreen alpha:1];
UIFont *cellFont = [UIFont fontWithName:@"noteworthy" size:15];
cell.textLabel.text = entry.articleTitle;
cell.textLabel.font = cellFont;
cell.textLabel.textColor = myColortext;