title: UITableViewCell content incorrect when editing and scrolling
body: <p>My tableview works perfectly fine when not in editing mode. All cells show up as expected, but if I enter editing mode and scroll, the cells that are redrawn while in editing mode have the incorrect content. In my function that turns off editing, I reload the table data and it shows up correctly again.</p>
  
  <p>Here the relevant code. </p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:    (NSIndexPath *)indexPath
  {    
  static NSString *CellIdentifier = @"Cell";
  UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:nil];
  
  cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
  
  FieldItemDecrypted *theField = [decryptedArray objectAtIndex:indexPath.row];
  
  
  
  
      // Configure the cell...
  
        cell.textLabel.text = [[NSString alloc] initWithData:theField.field encoding:NSUTF8StringEncoding];
        cell.detailTextLabel.text = [[NSString alloc] initWithData:theField.type encoding:NSUTF8StringEncoding];    
  
  
  return cell;
  }
  </code></pre>
  
  <p>And my code for editing:</p>
  
  <pre><code>- (IBAction)editRows:(id)sender
  {
  
  if ([self.tableView isEditing])
  {
      [self.tableView setEditing:NO animated:YES];
      [self.tableView reloadData];
  }
  else
  {
      [self.tableView setEditing:YES animated:YES];
  }
  
  }
  </code></pre>
  
  <p>Should look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/caGST.png" alt="enter image description here"></p>
  
  <p>but looks like this after scrolling while editing:</p>
  
  <p><img src="https://i.stack.imgur.com/t0QCF.png" alt="enter image description here"></p>