Reputation: 678
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
Reputation: 12195
UIImageViews default to having user interactions disabled. Make sure you call:
[myImageView setUserInteractionEnabled:YES];
Upvotes: 4