2

I am adding a subview to my superview and I need to know how to tell the superview to ignore touch events so that the only view receiving touch events, is the subview. How would this be done?

Thanks!

SimplyKiwi
  • 12,376
  • 22
  • 105
  • 191

1 Answers1

1

Set the userInteractionEnabled property of the superview to NO:

view.superview.userInteractionEnabled = NO;
highlycaffeinated
  • 19,729
  • 9
  • 60
  • 91