iOS8 adds a new method to UITableViewDelegate :
optional func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]?
You can create a custom UITableViewRowAction that will use your row actions.
For instance:
func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]? { let deleteAction = UITableViewRowAction(style: .destructive, title: "Cancel", handler: { action, indexPath in
For additional verification here and here
A good example of using the new API: here
source share