PTFakeTouch 模拟iOS的触摸事件[用户模式] 仅在应用程序中启用,系统触摸模拟库: : 只需构建它,然后将此框架添加到您的项目中即可。 然后就可以使用它了。 附件来自kif。 使用案例 单击屏幕上的一个点 NSInteger pointId = [PTFakeTouch fakeTouchId:[PTFakeTouch getAvailablePointId] AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseBegan]; [PTFakeTouch fakeTouchId:pointId AtPoint:CGPointMake(100,100) withTouchPhase:UITouchPhaseEnded]; 滑动画面 NSInteger pointId = [PTFakeTouch fakeTou
2022-08-05 00:28:29 110KB ios touchscreen simulate-touch-events Objective-C
1