title: Tableviews, cell editing and dragging
body: <p>I have a swift app with a tableview where the cells are dynamic. What I want to achieve is that the user can side swipe a cell and it brings up two tiles, one for editing and one for deleting (an example of this would be in the messages app where you side swipe for the delete option)</p>
  
  <p>I have got the two tiles to show by using:</p>
  
  <pre><code>func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -&gt; [UITableViewRowAction]? {
      let editRowAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: " Edit ", handler:{action, indexpath in
      });
      moreRowAction.backgroundColor = UIColor.orangeColor()
  
      let deleteRowAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Delete", handler:{action, indexpath in
  
      return [editRowAction, deleteRowAction]
  }
  </code></pre>
  
  <p>The first issue I have is how can I programatically close the side swipe when the edit option is selected so that the tiles are hidden and the user can see the textfield in the cell?</p>
  
  <p>Second issue, when a cell is in edit mode I want to be able to move the cell in the tableview: following tutorials I have implemented the below: </p>
  
  <pre><code>func tableView(tableView: UITableView, canMoveRowAtIndexPath indexPath: NSIndexPath) -&gt; Bool {
      return true
  }
  func tableView(tableView: UITableView, moveRowAtIndexPath sourceIndexPath: NSIndexPath, toIndexPath destinationIndexPath: NSIndexPath) {
      let sourceRow = sourceIndexPath.row;
      let destRow = destinationIndexPath.row;
      let object = ArrayList.objectAtIndex(sourceRow)
      ArrayList.removeObjectAtIndex(sourceRow)
      ArrayList.insertObject(object, atIndex: destRow)
  }
  </code></pre>
  
  <p>and set the following when I want to put cell into moving mode</p>
  
  <pre><code>    TableView.setEditing(true, animated: true)
  </code></pre>
  
  <p>Which sort of does what I want, however when I put it into editing mode I get the delete icon on the left side of the cell (red circle with white dash) which I don't want, ideally I'd like my own icon so user can select and drag cell around but I feel this might be pushing it slightly. </p>
  
  <p>Thanks</p>