delete multiple items from tableview list in swift
<p>After I checked multiple items in my tableview list I want to delete them from my list and add them to a favourites list.</p>

<pre><code>override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
    //this is to make multiple selections in list
    tableView.cellForRowAtIndexPath(indexPath)?.accessoryType = UITableViewCellAccessoryType.Checkmark

    //this gives me an array for rowsSelected
    let rowsSelected = self.tableView.indexPathsForSelectedRows!.map{$0.row}
    completeList.removeAtIndex(rowsSelected)

    //tried this alternative - not sure what type "selection" is here
    let selection = tableView.indexPathsForSelectedRows{
    completeList.removeAtIndex(rowsSelected)
    }
</code></pre>