Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆文章显示为单元格。当用户点击一篇文章,阅读并返回时,我希望该 cell.textlabel.text 从深蓝色变为深蓝色,以指示该文章已被阅读。我怎么做?
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] }