简体   繁体   中英

iPhone Vibrate While playing sound

How can I set iPhone to vibrate while playing the sound.

The code I use plays the sound firts and then vibrates or vice-versa.

Thanks

您可以简单地使用

AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM