본문 바로가기
# 애플 [Apple]/iOS

[iOS] GestureRecognizer이 반응하지 않을 경우 (GestureRecognizer not responding to tap)

by cy_mos 2019. 7. 3.
반응형

GestureRecognizer이 반응하지 않을 경우 (GestureRecognizer not responding to tap)

📄 Swift Source Code

[target view].userInteractionEnabled = true

🚀 REFERENCE

 

GestureRecognizer not responding to tap

After initialisation of by subclass of UIImageView I have the following line of code: self.userInteractionEnabled = true self.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "han...

stackoverflow.com

 

반응형

댓글