Add a loop that unchecks ALL rows, then put a checkmark in currently selected row.
Add something like this to didSelectRowAtIndexPath: method:
Code:
for(int iterator=0;iterator<aData.count;iterator++){
UITableViewCell *eachCell = [[self tableView] cellForRowAtIndexPath:[NSIndexPath indexPathForRow:iterator inSection:0]];
[eachCell setSelected:NO animated:YES];
[eachCell setAccessoryType:UITableViewCellAccessoryNone];
}
UITableViewCell *newCell = [tableView cellForRowAtIndexPath:indexPath];
[newCell setSelected:YES animated:YES];
[newCell setAccessoryType:UITableViewCellAccessoryCheckmark];
From what I know, checkmark is always on the right. If you want it on the left, you'll have to use a custom image...