我有一堆文章显示为细胞。当用户点击文章,读取并返回时,我希望cell.textlabel.text从深蓝色变为更深的蓝色,以表明文章已被阅读。 我该怎么做?
答案 0 :(得分:3)
示例:
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]
}