震动放声音

//扫描震动

- (void)playBeep

{

    SystemSoundID soundID;

    AudioServicesCreateSystemSoundID((__bridgeCFURLRef)[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"beep"ofType:@"wav"]], &soundID);

    AudioServicesPlaySystemSound(soundID);

    

    // Vibrate

    AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

}

你可能感兴趣的:(震动放声音)