I have a UITableView added as a subview to a UIViewController and I used the built-in editButtonItem with
self.navigationItem.rightBarButtonItem = editButtonItem
Also, after reading other forum threads, I called these functions:
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
return true
}
override func setEditing(_ editing: Bool, animated: Bool) {
super.setEditing(editing, animated: true)
tableview.setEditing(editing, animated: true)
}
When I tap "Edit", it does toggle the red minuses for each cell and it changes to "Done", but I still can't edit the text for the cells. Am I missing something?