title: Use moveRowAtIndexPath
body: <p>I'm trying to find a code sample that shows how to handle moving/rearranging cells in a tableView.</p>
  
  <p>For removal of Core data I use the code that is written below</p>
  
  <pre><code>- (void)tableView:(UITableView *)aTableView commitEditingStyle: (UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
  
  {
  
  if (editingStyle == UITableViewCellEditingStyleDelete)
  
  {
  
      NSFetchRequest* fetchRequest = [[NSFetchRequest alloc] init];
      NSEntityDescription* entityDescription = [NSEntityDescription entityForName:@"MyBase"
                                                           inManagedObjectContext:self.objectContext];
      [fetchRequest setEntity:entityDescription];
  
  
      NSArray *empArray=[self.objectContext executeFetchRequest:fetchRequest error:nil];
  
      if ([empArray count] &gt; 0){
          Moneybox *employee = [empArray objectAtIndex:indexPath.row];
          [self.objectContext deleteObject:employee];
          [self.objectContext save:nil];
  
      }
  
      [self buscarContactoExistente];
      [myTable reloadData];
  
  }
  
  }
  </code></pre>
  
  <p>How do I make</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath 
  </code></pre>
  
  <p>in the same style?</p>