ios - 长时间振动?

标签 ios iphone objective-c vibration

我想制作一个应用,当用户按下按钮时,手机会振动,直到用户松开按钮。

我四处搜索,但没有找到使它成为长时间振动的方法,除了 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/

相关文章:

ios - 使用 uibutton 和 if else if 语句更改字体

ios - 只绘制 ImageVIew 框架的角

ios - AdMob 插页式广告在 iOS 上仅显示一次

ios - 如何在 UISearchBar 中过滤 NSDictonary?

ios - 如何将特定按钮识别为发件人

ios - 使用 Swift 编写 iOS 应用程序时在 iPhone 中获取奇怪的磁力计数据

iphone - 无法将企业应用安装到具有未注册 UUID 的设备

iphone - 如何为我的表格 View 实现图像详细 View ?

ios - Interface Builder 找不到 .xib - Xcode 5.0.2

iphone - Facebook 访问 token - 测试强制过期