PTFakeTouch
PTFakeTouch copied to clipboard
Simulate touch events for iOS[User mode]
同一套代码在同一个App iOS12上可以正确点击,但是iOS15点击后没有反应 求大佬帮忙看看什么情况
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch* touch = [touches anyObject]; CGPoint originalLocation = [touch locationInView:self]; originalLocation.x = 10; NSInteger pointId = [PTFakeMetaTouch fakeTouchId:[PTFakeMetaTouch getAvailablePointId] AtPoint:originalLocation withTouchPhase:UITouchPhaseBegan]; [PTFakeMetaTouch fakeTouchId:pointId AtPoint:originalLocation...
Steps to reproduce 1. Run async loop with generating synthetic tap every second 2. Lock iPhone (press side button) 3. Unlock iPhone ER: taps continue to be performed AR: error...
键盘的QuickType bar的信息貌似无法点击到,比如验证码之类的。
怎么获取界面控件属性?
作者是用了 KIF 的扩展分类,但代码比较老旧了。如果遇到 iOS 14 以上用不了的话,可以把 kif 的相关代码同步过去即可。
这样是正常的吗?