iOS 代码让手机震动一下 在需要的类中导入 #import <AudioToolbox/AudioToolbox.h> 然后添加下面一句代码就可以了 AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);