Skip to content

Instantly share code, notes, and snippets.

@aurels
Created November 8, 2010 10:59
Show Gist options
  • Save aurels/667582 to your computer and use it in GitHub Desktop.
Save aurels/667582 to your computer and use it in GitHub Desktop.
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
if(indexPath.row == [tasksArray count])
return UITableViewCellEditingStyleInsert;
else
return UITableViewCellEditingStyleDelete;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment