Get the sender object from UITapGestureRecognizer
Solution:
let tapGestureRecognizer = UITapGestureRecognizer(target: vc, action: #selector(vc.tapEventAction(se
cell.img.addGestur
}
When tap called
@objc func tapEventAction(sender: UITapGestureRecognizer) {
let btn = sender.view as! UIImageView
}
Comments
Post a Comment