title: Cell shows on top of section header
body: <p>I have an <code>UITableView</code> with custom cells and custom headers. When I move one cell upon editing, it pops up on to of the header view. 
  How can I keep the header view on top of all the cells?</p>
  
  <p>The app uses storyboard, in case that makes a difference.</p>
  
  <p>This is how it looks? <a href="https://www.dropbox.com/s/wg8oiar0d9oytux/iOS%20SimulatorScreenSnapz003.mov" rel="noreferrer">https://www.dropbox.com/s/wg8oiar0d9oytux/iOS%20SimulatorScreenSnapz003.mov</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>[...]
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"ListCell";
      ListCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
      int handleSection = [self sectionToHandle:indexPath.section];
  
      switch (handleSection)
      {
          case PrivateLists:
          {
              if (tableView.isEditing &amp;&amp; (indexPath.row == self.privateLists.count))
              {
                  cell.textField.text = NSLocalizedString(@"Lägg till ny lista", nil);
                  cell.textField.enabled = NO;
                  cell.textField.userInteractionEnabled = NO;
                  cell.accessoryType = UITableViewCellAccessoryNone;
                  cell.editingAccessoryView.hidden = YES;
              }
              else
              {
                  List *list = [self.privateLists objectAtIndex:indexPath.row];
                  cell.textField.text = list.name;
                  cell.textField.enabled = YES;
                  cell.textField.userInteractionEnabled =YES;
                  cell.backgroundColor = [UIColor clearColor];
  
                  cell.onTextEntered = ^(NSString* enteredString){
                      list.name = enteredString;
                      UpdateListService *service = [[UpdateListService alloc]initServiceWithList:list];
                      [service updatelistOnCompletion:
                       ^(BOOL success){
                           DLog(@"Updated list");
  
                           NSIndexPath *newPath = [NSIndexPath indexPathForRow:0 inSection:indexPath.section];
                           [self.tableView moveRowAtIndexPath:indexPath toIndexPath:newPath];
  
                           [self moveListToTop:list.ListId newIndexPath:newPath];
                           justMovedWithoutSectionUpdate = YES;
                       }
                                                      onError:
                       ^(NSError *error){
                           [[ActivityIndicator sharedInstance] hide];
                           [[ErrorHandler sharedInstance]handleError:error fromSender:self];
                       }];
                  };
              }
          }
              break;
          default:
              return 0;
              break;
      }
  
      return cell;
  }
  
  -(UIView *)tableView:(UITableView *)aTableView viewForHeaderInSection:(NSInteger)section
  {
      UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 22)];
  
      UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 300, 21)];
      [textLabel setFont:[[AXThemeManager sharedTheme]headerFontWithSize:15.0]];
      [textLabel setTextColor:[[AXThemeManager sharedTheme]highlightColor]];
      [textLabel setText:@"SECTION TITLE"];
      [textLabel setBackgroundColor:[UIColor clearColor]];
  
      UIImageView *backgroundView = [[UIImageView alloc]initWithImage:[AXThemeManager sharedTheme].tableviewSectionHeaderBackgroundImage];
      [backgroundView setFrame:view.frame];
      [view addSubview:backgroundView];
      [view sendSubviewToBack:backgroundView];
      [view addSubview:textLabel];
  
      return view;
  }
  
  - (float)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
  {
      return 22;
  }
  
  - (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      return 44;
  }
  [...]
  </code></pre>