How to delete a row from tableview using custom buttom
//CustomCell.swift protocol FavoriteCellDelegate { func deleteButton(sender:CustomCell) } class Favo
you can get indexPath using table view point like this
let buttonPosition : CGPoint = sender.convert(sender.bounds.origin, to: tableview) let indexPath = tableview.indexPathForRow(at: buttonPosition)