stephen
stephen

Reputation: 1707

forcing double tap in code

Is there anyway to fire a double tap gesture in objective C code?

I want it so that when this line of code is executed, it would be as if a double tap gesture just happened on the screen, even though the user did no such thing.

Cheers.

Upvotes: 0

Views: 162

Answers (1)

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 39978

For this you have to synthesize your touch events. I haven't tried it but here's a tutorial that does something like that.
One more thing what ever you want to do on double tap, why don't you call that code where you wish to create double tap gesture.

Upvotes: 1

Related Questions