1.提醒用户信息, 铃声提醒或者震动提示
AudioServicesPlaySystemSound如果系统静音, 则用户提示就没有什么效果
AudioServicesPlayAlertSound如果静音会震动,否则声音提示
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);单一的震动
SystemSoundID soundID;
NSString *url = [[NSBundle mainBundle] pathForResource: @"sound" ofType: @"wav"];
AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:url], &soundID);
AudioServicesPlaySystemSound(soundID);
//AudioServicesPlayAlertSound(soundID)
AudioServicesPlaySystemSound如果系统静音, 则用户提示就没有什么效果
AudioServicesPlayAlertSound如果静音会震动,否则声音提示
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);单一的震动