I am storing selected indexPath
inside a mutabledictionary `selectedRowsInSectionDictionary as follows.
For example in the following dictionary it shows, first section which is key. And in this section, first (1,0), second(1,1) and third(1,2) rows has been chosen and stored inside the dictionary.
I am trying to check whether or not these indexPath
is stored inside the dictionary in the cellForRowAtIndexPath
delegate method, but it always returns false. i am wondering what I am doing wrong?
if([selectedRowsInSectionDictionary objectForKey:@(indexPath.section)] == indexPath)
{
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}