I implemented editActionsForRowAtIndexPath and commitEditingStyle the swipe is working but no action buttons are shown on the UITableViewCell
func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
let deleteAction = UITableViewRowAction(style: UITableViewRowActionStyle.Normal, title: "Delete" , handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
// I did some work here
})
return [deleteAction]
}
Does anyone have an idea how to get the action buttons to show when sliding? (Currently, the cell slides but behind it is a white background with no action buttons. Also clicking this white background provokes no response of any kind)
Note: I implemented editActionsForRowAtIndexPath in another ViewController and it works. (The action buttons both appear and response to click events)
commitEditingStyle is empty because it is required for sliding. editActionsForRowAtIndexPath is implemented and this works in one viewController but does not work for another
The code is as follow