简体   繁体   English

如何在iOS模拟器中测试强制触摸查看和弹出?

[英]How can I test force touch peek and pop in the iOS simulator?

When I search Google, I got SBShortcutMenuSimulator, it's can simulator Quick Action operate in iOS simulator. 当我搜索谷歌时,我得到了SBShortcutMenuSimulator,它可以在iOS模拟器中运行模拟器Quick Action。 But, how test peek and pop operate? 但是,测试偷看和流行是如何运作的?

I find way! 我找到了方法! If your have MacBook Pro with ForceTouch Trackpad, you can do it. 如果你的MacBook Pro配有ForceTouch触控板,你可以做到。

Follow: Choose iOS 9.3 with iPhone 6S Simulator, Find Hardware option on menu bar, check "Use Trackpad force for 3D Touch", then use your force touch Trackpad simulate 3D Touch. 关注:选择iOS 9.3 with iPhone 6S Simulator,在菜单栏上选择硬件选项,选中“使用Trackpad强制进行3D Touch”,然后使用强制触控触控板模拟3D Touch。

You can use FLEX to check it on the simulator. 您可以使用FLEX在模拟器上进行检查。 Using a combination of the command, control, and shift keys, you can simulate different levels of 3D touch pressure in the simulator. 使用命令,控制和移位键的组合,您可以在模拟器中模拟不同级别的3D触摸压力。 Each key contributes 1/3 of maximum possible force. 每把钥匙贡献最大可能力的1/3。 Note that you need to move the touch slightly to get pressure updates. 请注意,您需要稍微移动触摸以获得压力更新。

https://github.com/Flipboard/FLEX https://github.com/Flipboard/FLEX

Just remember to exclude FLEX from Release (App Store) Builds 请记住从Release(App Store)Builds中排除FLEX

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM