Skip to content

Instantly share code, notes, and snippets.

@codemobiles
Last active July 17, 2020 08:54
Show Gist options
  • Save codemobiles/f9e987a707c2a41041b9a80667e36504 to your computer and use it in GitHub Desktop.
Save codemobiles/f9e987a707c2a41041b9a80667e36504 to your computer and use it in GitHub Desktop.
if self.navigationItem.rightBarButtonItem?.title == "Edit" {
self.navigationItem.rightBarButtonItem?.title = "Done"
self.mTableView.setEditing(true, animated: true)
}else {
self.navigationItem.rightBarButtonItem?.title = "Edit"
self.mTableView.setEditing(false, animated: true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment