在iPhone 2.x固件中,您是否可以让iPhone在系统定义的持续时间内振动:
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
Run Code Online (Sandbox Code Playgroud)
在越狱手机中,您曾经可以使用MeCCA.framework来执行此操作:
MeCCA_Vibrator *v = new MeCCA_Vibrator;
v->activate(1);
sleep(5);
v->deactivate();
Run Code Online (Sandbox Code Playgroud)
但我的2.x iPhone上不存在MeCCA.framework.