SimplyKiwi
SimplyKiwi

Reputation: 12444

Tell Superview to ignore touch events?

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

Answers (1)

highlycaffeinated
highlycaffeinated

Reputation: 19867

Set the userInteractionEnabled property of the superview to NO:

view.superview.userInteractionEnabled = NO;

Upvotes: 1

Related Questions