我想制作一个应用,当用户按下按钮时,手机会振动,直到用户松开按钮。
我四处搜索,但没有找到使它成为长时间振动的方法,除了 2009 年的一个非常古老的教程,它似乎已经过时了。
最佳答案
Apple不允许您随意使用振动:
Vibration. It is not permitted to use continuous vibration in your apps – short bursts as warnings is all that is allowed. Don’t bother trying to set up a timer to keep the vibration going, it will cause your app to be rejected.
不是方法,是结果,那是不允许的。
来源:http://10base-t.com/unofficial-appstore-rejection-criteria/
关于ios - 长时间振动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22836211/