https://github.com/isaced/ptfaketouch
Simulate touch events for iOS[User mode]
https://github.com/isaced/ptfaketouch
Last synced: over 1 year ago
JSON representation
Simulate touch events for iOS[User mode]
- Host: GitHub
- URL: https://github.com/isaced/ptfaketouch
- Owner: isaced
- License: mit
- Created: 2019-04-23T03:03:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T06:26:31.000Z (over 7 years ago)
- Last Synced: 2025-01-23T00:29:39.436Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 309 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PTFakeTouch
Simulate touch events for iOS[User mode]
- Added Podspec
- Lib Architectures
```
lipo -info PTFakeTouch.framework/PTFakeTouch
Architectures in the fat file: PTFakeTouch.framework/PTFakeTouch are: armv7 i386 x86_64 arm64
```
**Use**
```objective-c
#import
// Click a point at screen
NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseEnded];
// Swipe screen
NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseMoved];
[PTFakeMetaTouch fakeTouchId:pointId AtPoint:CGPointMake(300,300) withTouchPhase:UITouchPhaseEnded];
```
**via**
- https://github.com/Ret70/PTFakeTouch
- https://github.com/zjjno/PTFakeTouchDemo
- https://github.com/vviicc/BSUITest