I have a table cell view with 4 UIButtons:

Buttons have a touch inside the event
@IBAction func increasDealRatingAction(sender:UIButton) {
let buttonPosition = sender.convertPoint(CGPointZero, toView: self.tableView)
if let indexPath = self.tableView.indexPathForRowAtPoint(buttonPosition) {
...
}
}
And I have editing actions for each cell:

func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {
...
return [addToWishListAction, addToPurchasesAction, deleteAction]
}
The problem is when you swipe left to show “add to wish list”, “delete” actions from the position of the “star” buttons, click on an event processed too, or a swipe action was not detected while scrolling through the button area.
source
share