8

I want to be able to invoke touch events without user interactions.

Is this possible?

t0mm13b
  • 34,087
  • 8
  • 78
  • 110

2 Answers2

0

you could manually call touches begin and touches end.

I think there may be a better solution to whatever you are trying to do, This seems like a very unconventional thing to do.

Bluephlame
  • 3,901
  • 4
  • 35
  • 51
  • 1
    No, you can't because according to the link that @Zydeco posted, "The iPhone lacks specific methods to create UIEvent and UITouch objects." – ma11hew28 May 15 '11 at 23:30
-1

Have a look at UIResponder's touchesBegan:withEvent: and touchesEnded:withEvent:

diederikh
  • 25,221
  • 5
  • 36
  • 49
  • 1
    You can't call those methods because according to the link that @Zydeco posted, "The iPhone lacks specific methods to create UIEvent and UITouch objects." – ma11hew28 May 15 '11 at 23:31