震动放声音

//扫描震动

- (void)playBeep

{

    SystemSoundID soundID;

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

    AudioServicesPlaySystemSound(soundID);

    

    // Vibrate

    AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

}

posted @ 2015-05-12 13:48  Allen.Ma  阅读(275)  评论(0编辑  收藏  举报