震动放声音
//扫描震动
- (void)playBeep
{
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((__bridgeCFURLRef)[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"beep"ofType:@"wav"]], &soundID);
AudioServicesPlaySystemSound(soundID);
// Vibrate
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
浙公网安备 33010602011771号