6

I am getting started with this Apple tutorial.

So I created a Tap Gesture by drag and drop on Image View, Then I control-drag into my UIViewControler and the Event (Action) is created successfully.

But my problem is that it is not firing the event. Is there any other thing I have to do?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Imran Sh
  • 1,623
  • 4
  • 27
  • 50

1 Answers1

22

enter image description here

You must set USER Interaction Enabled of UIImage view from storyboard/xib

Check mark User Interaction Enabled under "Interaction"

Daniel
  • 20,420
  • 10
  • 92
  • 149
Arslan Asim
  • 1,232
  • 1
  • 11
  • 29