标签:
1. 播放震动
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
2. 播放特定的声音
static SystemSoundID soundIDTest = 0;
NSString * path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"wav"];
if (path) {
AudioServicesCreateSystemSoundID( (CFURLRef)[NSURL fileURLWithPath:path], &soundIDTest );
}
AudioServicesPlaySystemSound( soundIDTest );
标签:
原文地址:http://www.cnblogs.com/linxiu-0925/p/5070705.html