Simulate touch tool working on iOS14.
Also, it currently does not work on the keyboard.
#import"TouchSimulator.h"
%ctor{
simulateTouch(TOUCH_DOWN,100,100);
simulateTouch(TOUCH_MOVE,100,300);
simulateTouch(TOUCH_UP,100,300);
}
If you want to simulate touch in any app, execute thesimulateTouch
in the%ctor
block (only available on Jailbroken device).
If you only simulate touch in certain applications, execute thesimulateTouch
at any time.
CopyTouchSimulator.xm
,TouchSimulator.h
andheaders/
to your project directory
simulateTouch(TOUCH_DOWN,100,100);
simulateTouch(TOUCH_UP,100,100);
simulateTouch(TOUCH_DOWN,100,100);
simulateTouch(TOUCH_MOVE,100,300);
simulateTouch(TOUCH_UP,100,300);