实现该功能非常简单,只需要导入AudioToolbox.framework
包,然后再需要使用的地方调用以下代码即可。
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
实现该功能非常简单,只需要导入AudioToolbox.framework
包,然后再需要使用的地方调用以下代码即可。
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
转载于:https://www.cnblogs.com/oceannw/p/shi-xian-shou-ji-zhen-dong-gong-neng.html