11

I have a transparent UIImageView with a button behind it. How can I touch "through" it and press the button underneath it?

Thanks

iOSDev
  • 1,028
  • 3
  • 13
  • 21

1 Answers1

25

Use UIImageView.userInteractionEnabled = NO;

That prevents it from receiving touches and all the touches will go through it.

Daniel G. Wilson
  • 14,819
  • 2
  • 30
  • 39