Is it possible to use the image?

I know that you can intercept the crane on the screen, but I want to know if the crane can be simulated at a point on the screen (with x and y coordinates). Thanks

+7
source share
1 answer
UITouch *touch = [[UITouch alloc] initInView:view]; UIEvent *eventDown = [[UIEvent alloc] initWithTouch:touch]; [touch.view touchesBegan:[eventDown allTouches] withEvent:eventDown]; [touch setPhase:UITouchPhaseEnded]; UIEvent *eventUp = [[UIEvent alloc] initWithTouch:touch]; [touch.view touchesEnded:[eventUp allTouches] withEvent:eventUp]; [eventDown release]; [eventUp release]; [touch release]; 

from here http://cocoawithlove.com/2008/10/synthesizing-touch-event-on-iphone.html

+3
source

All Articles