0

我有一堆文章显示为单元格。当用户点击一篇文章,阅读并返回时,我希望该 cell.textlabel.text 从深蓝色变为深蓝色,以指示该文章已被阅读。我怎么做?

4

1 回答 1

3

Example:

if (/* article associated with cell has been read*/) {
    cell.textLabel.textColor = [UIColor colorWithRed:0 green:0 blue:0.8 alpha:1]
}
else {
    cell.textLabel.textColor = [UIColor colorWithRed:0 green:0 blue:0.6 alpha:1]
}
于 2011-02-04T20:47:37.493 回答