Greetings Redditors,

For some reason my application is getting stuck in self.tableview.isEditing mode after I use self.tableView.reloadSections([0], with: .automatic); I am simply trying to default in a dynamic table after user deletes the final cell in the table. But when the default is reloaded, I cannot interact or tap on the cells. Even after turning off tableView.isEditing by using the following functions:

self.tableView.isEditing = false;
self.tableView.setEditing(false, animated: false);
self.setEditing(false, animated: false);
self.navigationItem.rightBarButtonItem = nil;

Any suggestions would help!

Already tried:
Using self.tableview.reloadData to try to reload the entire tableview. But the app simply crashes. But it does not crash when simply using self.tableView.reloadSections().

Source link


Please enter your comment!
Please enter your name here