I am trying to implement a shift sequence, but problems have come out. When added to @IBAction - self.isEditing = true, nothing happens when a button is pressed. On the Internet, I found an entry self.tableView.setEditing (true, animated: true), connected with View. When you click on the button, the table editing opens, but the button is not returned to the save state, so the edited table is not saved. What is the problem?
@IBAction func editButton(_ sender: UIBarButtonItem) { //self.isEditing = true self.tableView.setEditing(true, animated: true) } func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { } tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { return true } 