ios - UITableView Cell Blur Read Items -
i have simple ios app project have been working on. tableview shows entries fetched web service (rss feed) , tapping on 1 of them segues web view.
using following, checking if items has been read, , if yes puts check mark using setaccessorytype indicate item has been read:
- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { itemfeed *entry = [[channel items] objectatindex:[indexpath row]]; [[myfeedstore sharedstore] markitemasread:entry]; [[[self tableview] cellforrowatindexpath:indexpath] setaccessorytype:uitableviewcellaccessorycheckmark]; } the above code resulting in following:

what want cell blurred indicate has been read. putting following image techcrunch iphone app example want:

thanks in advance.
update: have tried changing text color in didselectrowatindexpath didn't work:
itemsviewcell *cell = (itemsviewcell *)[tableview dequeuereusablecellwithidentifier:@"itemscell"]; cell.titlelabel.textcolor = [uicolor redcolor]; //red color checking right
try adding following code.
- (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { itemsviewcell *cell = (itemsviewcell*)[tableview cellforrowatindexpath:indexpath]; cell.titlelabel.textcolor = [uicolor redcolor]; //red color checking right [tableview deselectrowatindexpath:indexpath animated:yes]; }
Comments
Post a Comment