1
votes

I've set my UIImage to recognise taps by linking its GestureRecognizers to a Tap Gesture Recognizer.

enter image description here

The Tap Gesture Recogniser should then trigger a method in my class.

enter image description here

The IBAction method never gets triggered, What could be the problem?

2

2 Answers

2
votes

User Interaction for the UIImage must be enabled! enter image description here

2
votes

you need to set UserInteractionEnabled of uiimage true .

[UImage setUserInteractionEnable:YES];