I have my array:
self.colorNames = [[NSArray alloc] initWithObjects:@\"Red\", @\"Green\", @\"Blue\", @\"Indigo\", @\"Violet\", nil];
I\'ve
Swift 4 Version :
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { let delete = UITableViewRowAction(style: .destructive, title: "delete") { (action, indexPath) in // delete item at indexPath } return [delete] }