I need to change the title of the default delete button that appears when I attempt to delete a row from a UITableView
after setting editing to YES
Add this method to your UITableView
delegate (probably your view controller).
func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath: NSIndexPath) -> String? {
return "Erase"
}
This makes the button say "Erase" but you can use any string you want.
My fuller answer is here.