Simulate touch events for iOS[User mode]
Switch branches/tags
Nothing to show
Clone or download
puga
Latest commit e3248a2 Jul 16, 2018
Permalink
Failed to load latest commit information.
IOKit.framework first Aug 15, 2016
PTFakeTouch.xcodeproj fix no public file Jul 16, 2018
PTFakeTouch fix no public file Jul 16, 2018
PTFakeTouchTests first Aug 15, 2016
.DS_Store fix no public file Jul 16, 2018
PTFakeTouch copy-Info.plist fix no public file Jul 16, 2018
README.md Update README.md Sep 22, 2016

README.md

PTFakeTouch

Simulate touch events for iOS [User mode]

Just build it and add this framework to your project. Then you can use it.

Addtions are from kif.

USE CASE

Click a point at screen

NSInteger pointId = [PTFakeTouch fakeTouchId:[PTFakeTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseEnded];

Swipe screen

NSInteger pointId = [PTFakeTouch fakeTouchId:[PTFakeTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseMoved];
[PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseEnded];