实现手机震动功能

实现该功能非常简单,只需要导入AudioToolbox.framework包,然后再需要使用的地方调用以下代码即可。

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)
posted @ 2017-02-10 12:27  oceannw  阅读(125)  评论(0编辑  收藏  举报