I am confused a little bit about settings table view cell accessories.
I have fixed two sections in my table
What I
A shortest and easiest way to implement logic for checkmark in selected row only.....
1.Create a global object of NSIndexPath..
selectedIndexPathForCheckMark= [[NSIndexPath alloc] init];
2.In didSelectRowAtIndexPath..
//Assiging selected indexPath to the declared object
selectedIndexPathForCheckMark = indexPath;
[tableView reloadData];
3.in cellForRowAtIndexPath..
if ([selectedIndexPathForCheckMark isEqual:indexPath]) {
[cell setAccessoryType:UITableViewCellAccessoryCheckmark];
}else {
//setAccessoryType None if not get the selected indexPath
[cell setAccessoryType:UITableViewCellAccessoryNone];
}