Skip to content

Instantly share code, notes, and snippets.

@augustjoki
Created September 30, 2008 04:46
Show Gist options
  • Save augustjoki/13745 to your computer and use it in GitHub Desktop.
Save augustjoki/13745 to your computer and use it in GitHub Desktop.
UITableViewCell *oldCell = [tableView cellForRowAtIndexPath:selectedIndexPath];
UITableViewCell *newCell = [tableView cellForRowAtIndexPath:indexPath];
//[UIView beginAnimations:nil context:nil];
oldCell.accessoryType = UITableViewCellAccessoryNone;
newCell.accessoryType = UITableViewCellAccessoryCheckmark;
//[UIView commitAnimations];
self.selectedIndexPath = indexPath;
[self performSelector:@selector(deselectRow) withObject:nil afterDelay:0.0];
return indexPath;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment