摘要: 使得iOS设备震动有两个方法,均是传入kSystemSoundID_Vibrate常量。AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);AudioServicesPlayAlertSound方法在不支持震动的设备上(iPod)会播放一段特殊的声音。AudioServicesPlaySystemSound方法在不支持震动的设备上调用会保持静默。详情可以参考System Sound Services Reference,这两者调用都只对i 阅读全文
posted @ 2014-02-10 10:40 haroel 阅读(301) 评论(0) 推荐(0) 编辑