Reputation: 12444
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!
Upvotes: 2
Views: 1245
Reputation: 19867
Set the userInteractionEnabled
property of the superview to NO
:
view.superview.userInteractionEnabled = NO;
Upvotes: 1