像偷看和流行一样手动振动iPhone 6S? [英] Vibrate iPhone 6S manually like peek and pop?
问题描述
如何手动触发像使用peek& pop或应用程序快捷方式时发生的单击式振动?
似乎这些家伙已经找到了一种方法来为iOS 9手机用Tapic Engine(包括iPhone 6S)做到这一点。 http://unifiedsense.com/development/using-taptic-engine-on -ios.html 我不确定它是否适用于iOS 8或任何其他手机。他们基本上从 UIDevice
中检索了Taptic Engine界面,并使用与Peek或Pop相对应的整数调用 actuateFeedback
。 / p>
不幸的是,如果您的意图是这些应用程序可能会被App Store拒绝。
How can I manually trigger a single click-like vibration like the ones that happen when using peek&pop, or application shortcuts?
It seems that these guys have found a way to do it for iOS 9 for phones with Taptic Engine (including the iPhone 6S). http://unifiedsense.com/development/using-taptic-engine-on-ios.html I'm not sure if it applies to iOS 8 or any other phones. They've essentially retrieved the Taptic Engine interface from UIDevice
and called actuateFeedback
with an integer corresponding to Peek or Pop.
Unfortunately these apps would likely be rejected by the App Store, if that's your intention.
这篇关于像偷看和流行一样手动振动iPhone 6S?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!