NSString *str = [[NSBundle mainBundle] pathForResource:@"tiaozhunle" ofType:@"mp3"];
NSURL *url = [NSURL fileURLWithPath:str];
SystemSoundID voiceID=0;
AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)url, &voiceID);
//
// AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)([arrData objectAtIndex:indexPath.row]), &voiceID);
//这个播放带有震动
// AudioServicesPlayAlertSound(voiceID);
//不带震动的普通播放
// AudioServicesPlaySystemSound(voiceID);
// AudioServicesPlaySystemSoundWithCompletion(voiceID, ^{
// NSLog(@"播放完成");
// AudioServicesDisposeSystemSoundID(voiceID);
// });
//
AudioServicesPlayAlertSoundWithCompletion(voiceID, ^{
NSLog(@"播放完成");
AudioServicesDisposeSystemSoundID(voiceID);
});