码迷,mamicode.com
首页 > 其他好文 > 详细

震动放声音

时间:2015-05-12 15:19:32      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

//扫描震动

- (void)playBeep

{

? ? SystemSoundID soundID;

? ? AudioServicesCreateSystemSoundID((__bridgeCFURLRef)[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"beep"ofType:@"wav"]], &soundID);

? ? AudioServicesPlaySystemSound(soundID);

?? ?

? ? // Vibrate

? ? AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

}

震动放声音

标签:

原文地址:http://www.cnblogs.com/allen123/p/4497125.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!