Guest User

Untitled

a guest
Jan 29th, 2020
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  2. NSString *x = [_todolist objectAtIndex: indexPath.row];
  3. [_doneTodos addObject:x];
  4. [_todolist removeObjectAtIndex: indexPath.row];
  5. [tableView reloadData];
  6.  
  7. //Spara i NSUserDefaults
  8. }
RAW Paste Data