title: How to swipe to delete in a table view
body: <p><strong><em>Hello,</em></strong> </p>
  
  <p>I'm having trouble using the swipe to delete feature with <em>Swift</em> specifically, I implemented the following method to my table view but the delete button will not appear when I swipe across the simulator with the pointer. I tried to override the method but I got the following error saying,</p>
  
  <ul>
  <li><p><em>override can only be specified on class members</em></p>
  
  <pre><code>func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
          if editingStyle == .Delete {
              // Delete the row from the data source
              Names.removeAtIndex(indexPath.row)
              Locations.removeAtIndex(indexPath.row)
              Types.removeAtIndex(indexPath.row)
              IsVisited.removeAtIndex(indexPath.row)
              Images.removeAtIndex(indexPath.row)
  
           print("Total Item: \(Names.count)")
          for name in Names {
              print(name)
  }
  </code></pre></li>
  </ul>