Created
August 1, 2013 19:15
-
-
Save UjwalManjunath/6134327 to your computer and use it in GitHub Desktop.
adding checkmark to one cell at a time(single section)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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