Reputation: 69
I'm looking for a way to disable/enable all touch event registration in an iOS application, i've searched google and stackoverflow but couldn't find a satisfying answer. Someone around who might happen to know anything about this?
Upvotes: 1
Views: 1173
Reputation: 2547
Use this method to start ignoring all the interaction events:
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
And this one to turn event interaction back on:
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
Upvotes: 5