How to change uitableview delete button text

前端 未结 4 591
一向
一向 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:58

    In Swift it is equal, just method signature is diferent!

    func tableView(tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath: NSIndexPath) -> String? {
      return "Erase"
    }
    

提交回复
热议问题