cell.cellButton.tag = indexPath.row cell.cellButton.addTarget(self, action: #selector(yourFunc(sender:)), for: UIControl.Event.touchUpInside) @objc func yourFunc(sender: UIButton){ let buttonTag = sender.tag }
cell.cellButton.tag = indexPath.row cell.cellButton.addTarget(self, action: #selector(yourFunc(sender:)), for: UIControl.Event.touchUpInside) @objc func yourFunc(sender: UIButton){ let buttonTag = sender.tag }