How to change uitableview delete button text

前端 未结 4 584
一向
一向 2020-12-13 03:13

Hi there I am trying to change the text that is showing in the delete button when a user swipes a uitableviewcell inside my tableview.

I have seen an example in anot

4条回答
  •  青春惊慌失措
    2020-12-13 03:56

    Swift 4.2

    override func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? {
            return "Erase"
        }
    

提交回复
热议问题