播放系统声音、提醒声音和振动设备
- -
(IBAction)doSound:(id)sender { -
// 播放系统声音 -
AudioServicesPlaySystemS ound(1005); - }
-
- -
(IBAction)doAlertSound:(id)sender { -
// 播放提醒声音 -
AudioServicesPlayAlertSo und(1006); - }
-
- -
(IBAction)doVibration:(id)sender { -
// 执行震动 -
AudioServicesPlaySystemS ound(kSystemSoundID_Vibrate); - }