导入头文件 #import <AudioToolBox.framework> 播放震动 AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); (没错 就一行代码)