Nicolò Ciraci
Nicolò Ciraci

Reputation: 678

UITapGestureRecognizer on 5 UIImageView

I have 5 UIImageView and one UITapGestureRecognizer, but when I tap on my UIImageView the method set as selector doesn't work. I've already set numberOfTaps as 1, but it doesn't work. Any ideas?

Upvotes: 0

Views: 186

Answers (1)

Sebastian Celis
Sebastian Celis

Reputation: 12195

UIImageViews default to having user interactions disabled. Make sure you call:

[myImageView setUserInteractionEnabled:YES];

Upvotes: 4

Related Questions