I want to change the identifier of an UIBarButtonItem with codes from \"Play\" to \"Pause\". How can I do that?
Thanks
I use this code to switch Edit mode
@IBAction func editMode(sender: UIBarButtonItem) {
self.setEditing(!self.isEditing, animated: true)
let newButton = UIBarButtonItem(barButtonSystemItem: (self.isEditing) ? .done : .edit, target: self, action: #selector(editMode(sender:)))
self.navigationItem.setLeftBarButton(newButton, animated: true)
}