Xcode 8&上的3D触摸模拟器10 [英] 3D Touch on Xcode 8 & Simulator 10
问题描述
I've read a ton of threads debating if 3D touch is available on the latest Xcode 7 versions. The consensus was that it's possible but only with a 3D phone or trackpad. My question is if with the new Xcode and Simulator, has that changed?
我正在使用运行Sierra的2012 MacBook:
I'm on a 2012 MacBook running Sierra:
我可以看到一些强制触摸选项:
I can see some force touch options:
但是我可以以某种方式启用这些选项,以便开始测试3D Touch代码吗?
But can I somehow enable those options so I can starting testing my 3D Touch code?
推荐答案
要在模拟器中测试3D触摸,您将需要一个强制触摸触控板(即内置有强制触摸触控板的MacBook或Magic Trackpad) 2).如果您有一个菜单,那么这些菜单项将变得栩栩如生.如果没有,则只能在设备上进行测试!
To test 3D touch in the simulator, you would need a force-touch trackpad (i.e. a MacBook with a force-touch trackpad built in, or a Magic Trackpad 2). If you have one, those menu items come to life. If you don't have one, you can only test on a device!
这篇关于Xcode 8&上的3D触摸模拟器10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!