NSString *path = [NSString stringWithFormat:@"/System/Library/Audio/UISounds/photoShutter.caf"];
NSURL *audioPath=[NSURL URLWithString:path];
SystemSoundID soundId;
AudioServicesCreateSystemSoundID((__bridge CFURLRef)audioPath, &soundId);
AudioServicesPlayAlertSound(soundId);
播放系统声音
最新推荐文章于 2022-01-04 10:54:26 发布