Skip to content

Instantly share code, notes, and snippets.

@UjwalManjunath
Created August 1, 2013 19:15
Show Gist options
  • Save UjwalManjunath/6134327 to your computer and use it in GitHub Desktop.
Save UjwalManjunath/6134327 to your computer and use it in GitHub Desktop.
adding checkmark to one cell at a time(single section)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView cellForRowAtIndexPath:indexPath].accessoryType = UITableViewCellAccessoryCheckmark;
}
-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView cellForRowAtIndexPath:indexPath].accessoryType = UITableViewCellAccessoryNone;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment