Answer the question
In order to leave comments, you need to log in
Software touch on an iOS device?
I really hope to get a recipe or a hint. There is a task on iPhone, iOS 6.1.3 (jailbreak). Make a software system touch. As far as I understood, earlier this was done through the Private API, the GraphicsServices framework, something like this:
+(void)simulateTouchDown:(CGPoint)point{
point.x = roundf(point.x);
point.y = roundf(point.y);
GSEventRecord record;
memset(&record, 0, sizeof(record));
record.type = kGSEventHand;
record.windowLocation = point;
record.timestamp = GSCurrentEventTimestamp();
GSSendSystemEvent(&record);
}
Answer the question
In order to leave comments, you need to log in
Yes, your way worked, of course. But perhaps there is an option to use such a method?
[self.buttonCalibrate sendActionsForControlEvents:UIControlEventTouchUpInside];
In iOS 6, GraphicsServices works without jail, but there is a lot of shamanism. Carefully analyze all the topics on stack overflow, I can’t help specifically now, unfortunately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question