For some strange reason, I can no longer swipe right to left to delete a row in my UITableView
. It used to work, but now it doesn't. The cells don't respond at all and the Delete 'button' never appears. I have the required function (Swift 2.3):
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
if editingStyle == .Delete {
let liftEvent = liftEvents[indexPath.row]
coreDataStack.managedObjectContext.deleteObject(liftEvent)
coreDataStack.saveMainContext()
reloadData()
}
}
I've verified that canEditRowAtIndexPath
is getting called, User Interactions Enable is on, and by comparing my view controller code to several prior commits over the past couple of weeks, I've verified that the only things I've changed are related to filtering the list. I've also tried resetting the Simulator.
EDIT: Here are my table view settings in IB:
What else should I look for to get this working again?