NSString *filePath = [[NSBundle mainBundle] pathForResource:@"flip_1" ofType:@"wav"];
if (filePath) {
AudioServicesCreateSystemSoundID((__bridge CFURLRef _Nonnull)[NSURL fileURLWithPath:filePath], &soundID);
AudioServicesPlaySystemSound(soundID);
}
转载请注明原文地址: https://ju.6miu.com/read-659596.html