I m trying to store selected indexpaths for some purpose. Below code I m executing in cellForRowAtIndexpath:
if ([_arrOfIndexPaths containsObject:indexPath]) {
[filterCell setAccessoryType:UITableViewCellAccessoryCheckmark];
[filterCell.textLabel setFont:[UIFont boldSystemFontOfSize:filterCell.textLabel.font.pointSize]];
}
When I m trying to print the description following line gets printed.
<__NSArrayM 0x91567d0>(
<NSIndexPath: 0x8e8b5b0> {length = 2, path = 0 - 0},
<NSIndexPath: 0x91559a0> {length = 2, path = 2 - 0}
)
Printing description of indexPath:
<NSIndexPath: 0x91a8460> {length = 2, path = 0 - 0}
If you see the instance description 0x91a8460 which is not available in the array. But still condition succeeded. Could some one explain me how this works. Thanks in advance.