I have implemented these methods:
func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool
{
return true
}
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
if (editingStyle == UITableViewCellEditingStyle.delete) {
showAlertToDeleteDevice()
}
}
and set breakpoints into it, but there is no call back of these function. -cellForRowAtIndexPath and -didSelectRowAtIndexPath functions works perfect which means that all is good with dataSource and Delegate connection.
What can be a problem? Because I don't see delete button by swiping. In the same time for I see delete button for my other table.