let cellImageView : UIImageView = {
let iv = UIImageView()
iv.image = #imageLiteral(resourceName: "venom")
iv.contentMode = .scaleAspectFill
iv.clipsToBounds = true
///////////////////////// 아래 부분의 코드가 필요!
let singleTap : UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(singleTapping(recognizer:)))
singleTap.numberOfTouchesRequired = 1
iv.addGestureRecognizer(singleTap)
/////////////////////////
return iv
}()
//제스처에 사용할 메서드
@objc func singleTapping(recognizer: UIGestureRecognizer) {
print("image clicked")
}