振动很长时间? [英] Vibrate for a long time?

查看:78
本文介绍了振动很长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个应用程序,让用户按下按钮时手机会振动,直到用户释放按钮为止.

I want to make an app where while the user is pushing down a button the phone vibrates until the user releases the button.

我已经四处搜寻,但除了2009年的一本很旧的教程似乎过时之外,我没有找到使它振动的方法.

Ive searched around and I haven't found a way to make it a long vibrate, except for a very old tutorial from 2009 which seems to be outdated.

推荐答案

Apple不允许随意使用振动:

It's not allowed by Apple to use the vibration as you want to:

振动.不允许在您的设备中使用连续振动应用程序–允许短暂的警告提示.不要打扰试图设置一个计时器以保持振动持续进行,这将导致您的应用将被拒绝.

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.

不是方法,而是结果,这是不允许的.

It's not the method, but the result, that's not permitted.

来源: http://10base-t.com/unofficial-appstore-rejection-criteria/

这篇关于振动很长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆