I have a uitableview which I would like to grayout the text if the cell is in a list of index values stored in a NSdictionary. As you can see I have my list of indexs to gray out stored in a nsdictionary where I get fuzzy is how to move that list into the if(condition???)
NSDictionary *myIndexList = [[inList objectAtIndex:0] objectForKey:@"myIndex"];
NSLog( @"data from INDEX !!!!!!!! %@", myIndexList);
if (indexPath.row == ???myIndexList????) {
cell.textLabel.textColor = [UIColor lightGrayColor];
}
Many Thanks and I hope this novice question finds you well.
This code will check through all the keys in the dictionary and if the value for a particular key is equal to the row it will change the text color to
lightGrayColor.Now if you are just returning
myIndexListas anNSArrayinstead of anNSDictionaryyou would use this: